Angular Ionic 3构建失败-无法确定OverlyPortal类的模块
尽管对一个非常相似的问题给出了这些答案,但没有一个解决方案对我有效: 运行Angular Ionic 3构建失败-无法确定OverlyPortal类的模块,angular,typescript,ionic-framework,Angular,Typescript,Ionic Framework,尽管对一个非常相似的问题给出了这些答案,但没有一个解决方案对我有效: 运行ionic build时,构建工作正常,但是ionic build--prod需要AOT等时,会出现问题 这是全部错误: [16:52:25] typescript error Cannot determine the module for class OverlayPortal in /Users/xxxxxxx/Development/xxxxxxx/mobile/node_module
ionic build
时,构建工作正常,但是ionic build--prod
需要AOT等时,会出现问题
这是全部错误:
[16:52:25] typescript error
Cannot determine the module for class OverlayPortal in /Users/xxxxxxx/Development/xxxxxxx/mobile/node_modules/ionic-angular/components/app/overlay-portal.d.ts! Add OverlayPortal to the NgModule
to fix it. Cannot determine the module for class IonicApp in /Users/xxxxxxxxxx/Development/xxxxxxxx/mobile/node_modules/ionic-angular/components/app/app-root.d.ts! Add IonicApp to the NgModule to fix it.
Cannot determine the module for class ClickBlock in /Users/xxxxxxxxxxx/Development/xxxxxxxxxx/mobile/node_modules/ionic-angular/components/app/click-block.d.ts! Add ClickBlock to the NgModule to
fix it.
[16:52:25] ionic-app-script task: "build"
[16:52:25] Error: The Angular AoT build failed. See the issues above
Error: The Angular AoT build failed. See the issues above
at /Users/xxxxxxxxxx/Development/xxxxxxxx/mobile/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:237:55
at step (/Users/xxxxxxxxxx/Development/xxxxxxxxxx/mobile/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23)
at Object.next (/Users/xxxxxxxxxx/Development/xxxxxxxxxx/mobile/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:13:53)
at fulfilled (/Users/xxxxxxxx/Development/xxxxxxxxxx/mobile/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:4:58)
[ERROR] An error occurred while running subprocess ionic-app-scripts.
我已尝试降级typescript