I can now see the error by running ionic run android --prod
In dev tools I see
Uncaught Error: Cannot find module "./app.module.ngfactory"
at Object.<anonymous> (main.js:7)
at e (main.js:1)
at main.js:1
at main.js:1
Doing a “pretty print” this is where the error is being thrown…
This only occurs when I use the --prod flag.
Has anyone seen this or any ideas? (the important thing
being occurs when built with the --prod
flag)
My complete packages are…
"dependencies": {
"@angular/common": "2.2.1",
"@angular/compiler": "2.2.1",
"@angular/compiler-cli": "2.2.1",
"@angular/core": "2.2.1",
"@angular/forms": "2.2.1",
"@angular/http": "2.2.1",
"@angular/platform-browser": "2.2.1",
"@angular/platform-browser-dynamic": "2.2.1",
"@angular/platform-server": "2.2.1",
"@ionic/storage": "1.1.7",
"@types/c3": "^0.4.38",
"@types/jszip": "0.0.32",
"@types/lodash": "^4.14.51",
"c3": "^0.4.11",
"ionic-angular": "2.0.1",
"ionic-native": "2.4.1",
"ionicons": "3.0.0",
"js-logger": "^1.3.0",
"jslogger": "^1.0.3",
"jszip": "^3.1.3",
"lodash": "^4.17.4",
"moment": "^2.17.1",
"ng2-translate": "^5.0.0",
"rxjs": "5.0.0-beta.12",
"semaphore-async-await": "^1.3.1",
"sw-toolbox": "3.4.0",
"zone.js": "0.6.26"
},
"devDependencies": {
"@ionic/app-scripts": "1.0.0",
"@types/jasmine": "^2.5.42",
"@types/node": "^7.0.5",
"angular-cli": "^1.0.0-beta.28.3",
"codecov": "^1.0.1",
"install": "^0.8.7",
"jasmine-core": "^2.5.2",
"jasmine-spec-reporter": "^3.2.0",
"karma": "^1.4.1",
"karma-chrome-launcher": "^2.0.0",
"karma-jasmine": "^1.1.0",
"karma-mocha-reporter": "^2.2.2",
"karma-remap-istanbul": "^0.6.0",
"ts-node": "^2.1.0",
"tslint": "^4.4.2",
"tslint-eslint-rules": "^3.3.0",
"typescript": "^2.1.5"
},
"cordovaPlugins": [
"cordova-plugin-statusbar",
"cordova-plugin-whitelist",
"cordova-plugin-console",
"cordova-plugin-device",
"cordova-plugin-splashscreen",
"ionic-plugin-keyboard"
],