If I do ionic run android
I get this error:
[10:29:33] bundle failed: Could not resolve ‘./app.module.ngfactory’ from /home/xxx/Desktop/myApp/.tmp/app/main.prod.ts
[10:29:33] ionic-app-script task: “build”
[10:29:33] Error: Could not resolve ‘./app.module.ngfactory’ from /home/xxx/Desktop/myApp/.tmp/app/main.prod.ts
I tried adding import { AppModuleNgFactory } from '../compiled/app/app.module.ngfactory';
instead of import { AppModuleNgFactory } from './app.module.ngfactory';
in my main.prod.ts but this didn’t help to remove the error.
My tsconfig.json
{
“compilerOptions”: {
“allowSyntheticDefaultImports”: true,
“declaration”: true,
“emitDecoratorMetadata”: true,
“experimentalDecorators”: true,
“lib”: [
“dom”,
“es2015”
],
“module”: “es2015”,
“moduleResolution”: “node”,
“target”: “es5”
},
“include”: [
“src/**/*.ts”
],
“types”: [
“firebase”
],
“exclude”: [
“node_modules”
],
“compileOnSave”: false,
“atom”: {
“rewriteTsconfig”: false
}
}
My ionic info:
Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.36
OS: Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS
Node Version: v4.2.6