White screen with --prod flag

#1

Hi, after updating typescript@2.8.4 to 2.9.1 i got a white screen after the splash screen. debuging the app, i can see this error message: Uncaught Error: Cannot find module "."

This is my package.json

{
  "name": "xonda-movil",
  "version": "0.0.1",
  "author": "Jaibana",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint"
  },
  "config": {
    "ionic_purge_unused_fonts": false
  },
  "dependencies": {
    "@angular/animations": "5.2.10",
    "@angular/common": "5.2.10",
    "@angular/compiler": "5.2.10",
    "@angular/compiler-cli": "5.2.10",
    "@angular/core": "5.2.10",
    "@angular/forms": "5.2.10",
    "@angular/http": "5.2.10",
    "@angular/platform-browser": "5.2.10",
    "@angular/platform-browser-dynamic": "5.2.10",
    "@ionic-native/core": "^4.11.0",
    "@ionic-native/firebase": "^4.11.0",
    "@ionic-native/screen-orientation": "^4.11.0",
    "@ionic-native/splash-screen": "^4.11.0",
    "@ionic-native/status-bar": "^4.11.0",
    "@ionic/storage": "2.1.3",
    "chart.js": "^2.7.2",
    "cordova-android": "7.1.1",
    "cordova-ios": "4.5.5",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-firebase": "^1.0.5",
    "cordova-plugin-ionic-keyboard": "^2.1.2",
    "cordova-plugin-ionic-webview": "^2.0.2",
    "cordova-plugin-screen-orientation": "^3.0.1",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "es6-promise-plugin": "^4.2.2",
    "firebase": "^5.3.1",
    "ionic-angular": "3.9.2",
    "ionicons": "^4.3.0",
    "lodash": "^4.17.10",
    "ng2-charts": "^1.6.0",
    "rxjs": "^6.2.2",
    "rxjs-compat": "^6.2.2",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.26"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.1.11",
    "@types/lodash": "^4.14.116",
    "typescript": "^2.9.1"
  },
  "description": "Proyecto Xonda",
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-firebase": {},
      "cordova-plugin-screen-orientation": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-ionic-keyboard": {}
    },
    "platforms": [
      "android"
    ]
  }
}
#2

Audit all your imports carefully.

#3

Why? The Typescript version is closely tied to ionic-angular.

#4

@Sujan12 Can’t I update to typescript@2.9.1?

#5

@rapropos that is impossible, i have a lot of imports in my project.

#6

I don’t know. See what happens if you downgrade to the version that you get when you start a new project with ionic start. If it works then, obviously not. If you still have the same error, you have ruled that out.

#7

same problem with me … any updates please :frowning: