I have similar type of issue while creating build for PROD. Is anyone help to get resolve? Below are details
10-140-59-62:mobileapp $ ionic info
cli packages: (/…/…/Documents/projects/mobileapp/node_modules)
@ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2
global packages:
Cordova CLI : 6.5.0
local packages:
@ionic/app-scripts : 2.1.4
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.5.1
System:
Node : v6.10.3
npm : 3.10.10
OS : macOS Sierra
Xcode : Xcode 9.0 Build version 9A235
10-140-59-62:mobileapp $ sudo ionic cordova build android --prod
[WARN] Detected @ionic/cli-plugin-cordova in your package.json.
As of CLI 3.8, it is no longer needed. You can uninstall it:
npm uninstall --save-dev --save-exact @ionic/cli-plugin-cordova
[WARN] Detected @ionic/cli-plugin-ionic-angular in your package.json.
As of CLI 3.8, it is no longer needed. You can uninstall it:
npm uninstall --save-dev --save-exact @ionic/cli-plugin-ionic-angular
[INFO] Running app-scripts build: --prod --platform android --target cordova
[14:16:05] build prod started …
[14:16:05] clean started …
[14:16:05] clean finished in 1 ms
[14:16:05] copy started …
[14:16:05] ngc started …
Error: Cannot determine the module for class OverlayPortal in /Users/mobileapp/node_modules/ionic-angular/umd/components/app/overlay-portal.d.ts! Add OverlayPortal to the NgModule to fix it.
Cannot determine the module for class IonicApp in /Users/node_modules/ionic-angular/umd/components/app/app-root.d.ts! Add IonicApp to the NgModule to fix it.
Cannot determine the module for class ClickBlock in /User/node_modules/ionic-angular/umd/components/app/click-block.d.ts! Add ClickBlock to the NgModule to fix it.
Cannot determine the module for class OverlayPortal in /Users/mobileapp/node_modules/ionic-angular/es2015/components/app/overlay-portal.d.ts! Add OverlayPortal to the NgModule to fix it.
Cannot determine the module for class IonicApp in /Users/mobileapp/node_modules/ionic-angular/es2015/components/app/app-root.d.ts! Add IonicApp to the NgModule to fix it.
Cannot determine the module for class ClickBlock in /Users/mobileapp/node_modules/ionic-angular/es2015/components/app/click-block.d.ts! Add ClickBlock to the NgModule to fix it.