Open pauleustice opened 3 years ago
I have managed to dig a little deeper into this (I am working with @pauleustice on the same project). It appears related to a known issue with the @angular-architects/module-federation package we are also using in our project
If, as suggested, I change that libraries package.json file from
"main": "src\\index.js",
"typings": "src\\index.d.ts",
to
"main": "src/index.js",
"typings": "src/index.d.ts",
then we get a little further. The build no longer hangs but does give us this error
Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: The Angular Webpack loader requires the AngularWebpackPlugin.
at Object.angularWebpackLoader
Despite the error, we can still run the app in the browser and it seems to work correctly. I don't think this is an issue with ngx-build-plus however as I get the same error if I swap that out with @angular-builders/custom-webpack
Hi there. We are just getting started with ngx-build-plus and have run into a problem.
We are using module federation and have noticed that running
ng serve
gets stuck atGenerating browser application bundles (phase: building)
and doesn't complete the build. This occurs when these two conditions are met:styleUrls
for a Component's metadatae.g.
Removing either the styleUrls entry, or the sharedMappings allows the app to build.
package.json dependencies: