Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RsBuild + Module Federation + Nx Libs #37

Open
manfredsteyer opened this issue Jan 4, 2025 · 0 comments
Open

RsBuild + Module Federation + Nx Libs #37

manfredsteyer opened this issue Jan 4, 2025 · 0 comments

Comments

@manfredsteyer
Copy link

Here, I have a Nx workspace with two apps sharing a repo-internal lib via Module Federation:

https://github.com/manfredsteyer/nx-rspack-mf-demo/tree/shared-lib-helper/shell/src/app
(Branch: shared-lib-helper)

It works nicely so far; however, if this shared lib is only used on the remote and not on the host, we get an error when loading the remote.

To try it out, just remove all references to the AuthService from the shared lib (remove line 3, 13, 16):

https://github.com/manfredsteyer/nx-rspack-mf-demo/blob/shared-lib-helper/shell/src/app/app.component.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant