-
Notifications
You must be signed in to change notification settings - Fork 203
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
Build failed while creating shared libraries #508
Comments
It seems like this is because the package contains its own build scripts (build.js, publish.js, publish.next.js). It seems like these files are recognized as separate entry points that NF tries to compile. I need to investigate why this is the case. |
@manfredsteyer Is there any news about this topic ? I'm in a similar situation where package I want to skip are still displayed in the console as errors, and this only appears with native-federation builder. Also when bootstrapping the application, it doesn't fetch the remoteEntry.json I have in the manifest file. But again when I'm not using native federation builder, I can my manifestFile being loaded, it just does not load my micro front end past that point. |
So, for now, it's about identifying the entry points that cause such issues and skipping them by adding them to the skip list. |
We're still seeing this same issue with
Despite updating the
✘ [ERROR] Could not resolve "react"
You can mark the path "react" as external to exclude it from the bundle, which will remove this 1 of 83 errors shown (disable the message limit with --log-limit=0) Is anyone else still seeing this? Will perhaps try upgrading to the latest version. |
@mguay22, were you able to find a solution to this issue? I'm encountering the same problem with "@angular-architects/native-federation": "^18.2.2". Any assistance would be greatly appreciated. Thank you for your time! |
@sajay-g, @mguay22 @joepeace01 you can help us. If this is a persisting issue, please reopen or create a new issue and provide a StackBlitz example. An example that already contains the issue saves us a lot of time trying to reproduce it. Thanks guys! |
@rainerhahnekamp I have created issue 683 |
Hi, yes I was able to resolve this issue by using a regular expression: |
@rainerhahnekamp @sajay-g @mguay22, do you have any news about this issue? It's the same here at Federation 18.2.2, and we also have problems with Apollo dependencies. Putting them on the skip list is not working. Angular 18.2 w/ Vite and Module Federation |
We want to use in our project Fabric.js, but building the application after adding fabric as a dependency always fails with the error:
We tried adding 'fabric' to the devDependencies and also put it in the skip array of our federation.config.js. That does not change anything.
The versions we are using are:
@angular/cli: 17.2.0
@angular-architects/native-federation: 17.1.6
fabric: 5.3.0
Our package.json looks like this:
And our federation.config.js like this:
What I don't understand is, that the build still tries to build the fabric library, do I miss something?
The text was updated successfully, but these errors were encountered: