You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an NX Angular project with latest Webpack installed on it. I tried to use Module Federation on this project. Everything is running smoothly but there's a critical issue when adding a library using NX generate to the project.
When you run nx serve after adding a library, you get the error below.
I ignored this error because my application was running just fine; until I tried to build the project using nx build. The project build fails because of this error and cannot get procced.
./libs/weather/src/index.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
Error: The AngularCompilerPlugin was not found. The @ngtools/webpack loader requires the plugin.
at Object.ngcLoader (...\node_modules\@ngtools\webpack\src\loader.js:29:15)
Error: Conflict: Multiple assets emit different content to the same filename libs_weather_src_index_ts.js
🐞 Bug report
Command (mark with an
x
)Is this a regression?
No.Description
I have an NX Angular project with latest Webpack installed on it. I tried to use Module Federation on this project. Everything is running smoothly but there's a critical issue when adding a library using NX generate to the project.When you run
nx serve
after adding a library, you get the error below.I ignored this error because my application was running just fine; until I tried to build the project using
nx build
. The project build fails because of this error and cannot get procced.🔬 Minimal Reproduction
You can take a look at my project and see the error yourself.
https://github.com/adnanebrahimi/angular-module-federation-nx
library
branch.yarn
nx s
,nx b
ornpm run start:all
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: