-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Module Federation buid stuck on "building" phase (forever) #20429
Comments
Hi @glebmachine, Thanks for opening this issue. While the Angular CLI allows extending the Webpack configuration by doing so you are venturing on the unsupported path as Angular tooling team doesn't provide support for builds using custom Webpack configurations. I suggest that you file an issue https://github.com/angular-architects/module-federation-plugin and raise an issue with the author of this package. If is indeed an Angular CLI issue which cannot be solved by the above mentioned 3rd party package please feel |
@alan-agius4 Unfortunately, this is not I found that if I think it's one of the angular-cli devkit extensions, that breaks compilation process silently Here updated by example, with ultra clean repro (inly cli and Module Federation) Steps to reproduce:
|
@alan-agius4 please, reopen |
Hi, @glebmachine, Following some further discussion with @clydin. Webpack 5 is still experimental in v11 and even without that, modifying the internal Webpack configuration in complex ways is not guaranteed to work nor supported. If you’d like to troubleshoot and come up with a fix, we can evaluate it, but Webpack 5 should be expected to not be fully functional in v11. |
Yeah, i'm not expecting that, but in 12 preview build it emits zero sized bundle and don't serve anything I'm just trying to find the way to run module federation, and brings you some bugs. as early adopter About "modifying the internal Webpack configuration" Microfrontends is very important thing in 2021 and module federation - key feature for implementing them, don't dismiss that, maybe @clydin have some thoughts about that, or reasons not to support module federation in angular ecosystem? Related to feature request: #17556 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
It's early version bug
Description
When internal library added as shared dependency, my build stuck on building phase (tested for an hour long)
When something brokes inside building phase would be great to have error message with stack trace
🔬 Minimal Reproduction
Repro:
git clone [email protected]:glebmachine/module-federation-build-stuck.git
yarn
./node_modules/.bin/ng run shell:serve
🔥 Exception or Error
Just always hang on
building phase
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: