-
Notifications
You must be signed in to change notification settings - Fork 220
ModifyEntryPlugin issue #417
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
Comments
Seems the issue is originally caused by using nx builder @nx/angular:webpack-browser which removes or doesn't include 'styles' compiler options entry. |
The same for me in v15. As you said in this issue it's related to eager: true. |
yes it could be it is valid only for ngx-build-plus builder. Anyway the provided fix handles it. |
I removed ngx-build-plus builder and actually I'm using @angular-devkit/build-angular |
Hi! Any news about bug fix? |
@manfredsteyer any news about this? Thanks |
@angular-builders/custom-webpack:browser have been using this to extend webpack and got the same issue. It may work with ngx-build-plus - but it's outdated and does not support angular 18. "hotfix" is to just extract the withmfe and modify entry plugins as js to add the extra styles check, but that's not a good long term solution - just a patch to not get stuck. |
Uh oh!
There was an error while loading. Please reload this page.
Hi!
I have encountered an issue when calling withModuleFederationPlugin with eager loading set to true:
I could figure it out that ModifyEntryPlugin cannot find 'style' entry in compiler.options.entry which is set in the createModifyEntryPlugin method in .\libs\mf\src\utils\with-mf-plugin.ts Ln 136 when eager loading is set to true.
Is it my project specifiic issue (some ts, compiler options) or does the ModifyEntryPlugin plugin need to be fixed to add key exists check ?
Thank you!
The text was updated successfully, but these errors were encountered: