Error: Cannot find module '@angular/compiler/src/compiler'

ionic cordova build ios --prod
Running app-scripts build: --prod

[14:11:29] build prod started …
[14:11:29] clean started …
[14:11:30] clean finished in 6 ms
[14:11:30] copy started …
[14:11:30] deeplinks started …
[14:11:30] deeplinks finished in 138 ms
[14:11:30] ngc started …
Error: Cannot find module ‘@angular/compiler/src/compiler’

ionic info -

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.9.0
ionic (Ionic CLI) : 3.9.0

global packages:

Cordova CLI : 8.1.0 

local packages:

@ionic/app-scripts : 3.2.3
Cordova Platforms  : browser 5.0.4 ios 4.5.5
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.1.1
ios-deploy        : 1.9.4 
Node              : v8.15.1
npm               : 6.10.2 
OS                : macOS
Xcode             : Xcode 10.1 Build version 10B61 

Config xml

<?xml version='1.0' encoding='utf-8'?> BimaCalc An awesome Ionic/Cordova app. Ionic Framework Team
1 Like