Build prod failed

Hello hello

I am getting an issue with ionic run android with prod option

If I do ionic run android --prod make my builld failed with error:

    [10:16:37]  rollup started ...
  [10:16:37]  rollup failed: Could not resolve entry (D:\xx\git\pr\application\xx\.tmp\app\
  [10:16:37]  ionic-app-script task: "build"
  [10:16:37]  Error: Could not resolve entry (D:\xx\git\pr\application\xx\.tmp\app\
  Error: Could not resolve entry (D:\xx\git\pr\application\xx\.tmp\app\
      at error (D:\xx\git\pr\application\xx\node_modules\@ionic\app-  scripts\node_modules\rollup\dist\rollup.js:170:12)
      at D:\xx\git\pr\application\xx\node_modules\@ionic\app-scripts\node_modules\rollup\dist\rollup.js:9284:5

Here is my package.json

  "name": "ionic-hello-world",
  "author": "Ionic Framework",
  "homepage": "",
  "private": true,
  "scripts": {
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  "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.6",
    "@types/cropperjs": "0.0.22",
    "cropperjs": "^1.0.0-alpha",
    "ionic-angular": "2.0.1",
    "ionic-native": "2.2.11",
    "ionicons": "3.0.0",
    "ng2-translate": "^5.0.0",
    "ng2-ui-auth": "^6.0.0",
    "pouchdb": "^6.0.6",
    "pouchdb-upsert": "^2.0.2",
    "qrcode-generator": "^1.0.7",
    "rxjs": "5.0.0-beta.12",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.6.26"
  "devDependencies": {
    "@ionic/app-scripts": "^1.1.4",
    "rollup-plugin-commonjs": "^6.0.0",
    "typescript": "^2.1.5"
  "description": "xx: An Ionic project",
  "cordovaPlugins": [
  "cordovaPlatforms": [],
  "config": {
    "ionic_rollup": "./script/rollup.config.js",
    "ionic_sass": "./script/sass.config.js"

I went from app script 0.47 to 1.1.4 so maybe I forgot something. I added:

To go to 1.0.0 I added first
npm install sw-toolbox --save --save-exact

Then I did
npm install @ionic/app-scripts@latest --save-dev

I looked at:

So message for ng2-translate has been done
The advice to go to last version off app script (i am on it)
The advice to go to more recent typescript version (2.0.9) already done as I am in 2.1.5

I think I am no more in link with this issue has I removed the and created the app.main.ts like it was mentionned in the changelog of the 0.0.47

Here is the content:

import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { AppModule } from './app.module';


My tsconfig.json is exactly the same as the one mentionned in the changelog 0.0.47

I did not touched to ionic_source_map

I changed as well the version of typescript (from 2.1.x to 2.0.10) as I saw in [ts] Cannot find module './app.module.ngfactory'

But nothing :frowning:

Do you maybe have an idea?

My github issue has been opened here: