sonicoder86 / angular2-aot-cli-webpack-plugin

Angular AOT (Ahead Of Time) compilation with Webpack plugin
40 stars 8 forks source link

Module not found: Error: Can't resolve './modules/main.module.ngfactory' #4

Closed IAMtheIAM closed 7 years ago

IAMtheIAM commented 7 years ago

No NgFactory files being produced.

git clone (repo)
npm i && npm run build

Results in:

ERROR in ./app/main.ts
Module not found: Error: Can't resolve './modules/main.module.ngfactory' in 'C:\Source\GitHub\angular2-aot-cli-webpack-plugin\src\app'
 @ ./app/main.ts 2:0-70
thorin87 commented 7 years ago

npm i enhanced-resolve@3.3.0 --save-dev should help. More info:

https://github.com/webpack/enhanced-resolve/issues/98

https://github.com/angular/angular-cli/issues/7113