manfredsteyer / module-federation-with-angular-dynamic

Dynamic Module Federation with Angular
121 stars 67 forks source link

npm run build doesn't seem to work #32

Open obruening opened 2 years ago

obruening commented 2 years ago

hi there,

i tried the module-federation-with-angular-dynamic example.

running

npm run start

works fine, but i get an error when i run

npm run build

the error is:

./node_modules/@angular-devkit/build-angular/src/webpack/es5-polyfills.js:106:0-37 - Error: Module not found: Error: Can't resolve 'zone.js/plugins/zone-legacy' in 'C:\microfrontends\module-federation-with-angular-dynamic\node_modules\@angular-devkit\build-angular\src\webpack'

Setup:

Angular CLI: 12.2.13
Node: 12.15.0
Package Manager: npm 6.13.7
OS: win32 x64

Angular: 12.2.13
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

I have a same error on my Linux computer.