Angular 4- ng build --prod导致错误

时间:2018-08-13 04:29:40

标签: angular typescript angular-cli

我使用ng build -prod构建我的项目,并且抛出以下错误。

ERROR in ../main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'e:\Working_Folder_Mandala\MandalaConsumer\src\main\webapp\src'
ERROR in ../$$_gendir lazy
Module not found: Error: Can't resolve 'e:\Working_Folder_Mandala\MandalaConsumer\src\main\webapp\src\$$_gendir\app\components\events-list\events.module.ngfactory.ts' in 'e:\Working_Folder_Mandala\MandalaConsumer\src\main\webapp\src\$$_gendir'
ERROR in ../$$_gendir lazy
Module not found: Error: Can't resolve 'e:\Working_Folder_Mandala\MandalaConsumer\src\main\webapp\src\$$_gendir\app\components\intentions\intention.module.ngfactory.ts' in 'e:\Working_Folder_Mandala\MandalaConsumer\src\main\webapp\src\$$_gendir'
ERROR in ../$$_gendir lazy
Module not found: Error: Can't resolve 'e:\Working_Folder_Mandala\MandalaConsumer\src\main\webapp\src\$$_gendir\app\views\explore\explore.module.ngfactory.ts' in 'e:\Working_Folder_Mandala\MandalaConsumer\src\main\webapp\src\$$_gendir'
ERROR in ../$$_gendir lazy
Module not found: Error: Can't resolve 'e:\Working_Folder_Mandala\MandalaConsumer\src\main\webapp\src\$$_gendir\app\views\home\home.module.ngfactory.ts' in 'e:\Working_Folder_Mandala\MandalaConsumer\src\main\webapp\src\$$_gendir'
ERROR in ../$$_gendir lazy
Module not found: Error: Can't resolve 'e:\Working_Folder_Mandala\MandalaConsumer\src\main\webapp\src\$$_gendir\app\views\learn\learn.module.ngfactory.ts' in 'e:\Working_Folder_Mandala\MandalaConsumer\src\main\webapp\src\$$_gendir'
ERROR in ../$$_gendir lazy
Module not found: Error: Can't resolve 'e:\Working_Folder_Mandala\MandalaConsumer\src\main\webapp\src\$$_gendir\app\views\live\live.module.ngfactory.ts' in 'e:\Working_Folder_Mandala\MandalaConsumer\src\main\webapp\src\$$_gendir'
ERROR in ../$$_gendir lazy
Module not found: Error: Can't resolve 'e:\Working_Folder_Mandala\MandalaConsumer\src\main\webapp\src\$$_gendir\app\views\publication\publication.module.ngfactory.ts' in 'e:\Working_Folder_Mandala\MandalaConsumer\src\main\webapp\src\$$_gendir'

0 个答案:

没有答案