执行ng build --prod报错信息如下
执行ng build --prod报错信息如下:
ERROR in ./src/$$_gendir async
Module not found: Error: Can't resolve 'F:\jianzhi\items\ng2-framework\src\$$_ge
ndir\app\pages\maps\maps.module.ngfactory.ts' in 'F:\jianzhi\items\ng2-framework
\src\$$_gendir'
@ ./src/$$_gendir async
@ ./~/@angular/core/@angular/core.es5.js
@ ./src/main.ts
@ multi ./src/main.ts
解决方法:
执行以下命令行即可
npm install enhanced-resolve@3.3.0