Cannot find module "." on release build

#1

Community,
please tell me how can I find out which module is my builded application struggling with?

I can run the application with serve, run browser even run it on the device but when I make --release build it fails to start on:

Uncaught Error: Cannot find module "."
    at vendor.js:1
    at vendor.js:1
    at Object.<anonymous> (vendor.js:1)
    at i (vendor.js:1)
    at Object.557 (main.js:1)
    at i (vendor.js:1)
    at window.webpackJsonp (vendor.js:1)
    at main.js:1

how can I find out what is wrong? how can I do unminified, un-uglified release build?
Like I’m in hurry for a month with development and it fails on the last step. So disappointing. Ionic :frowning:

this is my package.json for a starter:

{
  "name": "com.driveme.makememillions",
  "version": "0.0.1",
  "author": "Desperate Dev",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build --prod",
    "lint": "ionic-app-scripts lint",
    "ionic:build": "ionic-app-scripts build --prod",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/common": "4.4.4",
    "@angular/compiler": "4.4.4",
    "@angular/compiler-cli": "4.4.4",
    "@angular/core": "4.4.4",
    "@angular/forms": "4.4.4",
    "@angular/http": "4.4.4",
    "@angular/platform-browser": "4.4.4",
    "@angular/platform-browser-dynamic": "4.4.4",
    "@angular/router": "^5.2.9",
    "@auth0/angular-jwt": "^1.1.0",
    "@ionic-native/core": "^4.10.0",
    "@ionic-native/diagnostic": "^4.10.0",
    "@ionic-native/google-maps": "^4.6.0",
    "@ionic-native/location-accuracy": "^4.10.0",
    "@ionic-native/native-geocoder": "^4.5.3",
    "@ionic-native/status-bar": "4.3.2",
    "@ionic/storage": "^2.0.1",
    "@ngx-translate/core": "^7.2.2",
    "@ngx-translate/http-loader": "^2.0.1",
    "@stomp/ng2-stompjs": "^4.0.0",
    "angular-progress-bar": "^1.0.2",
    "cordova-android": "6.3.0",
    "cordova-browser": "5.0.3",
    "cordova-plugin-add-swift-support": "^1.7.1",
    "cordova-plugin-device": "^1.1.7",
    "cordova-plugin-googlemaps": "git+https://github.com/mapsplugin/cordova-plugin-googlemaps.git#multiple_maps",
    "cordova-plugin-googlemaps-sdk": "git+https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk.git",
    "cordova-plugin-ionic-webview": "^1.2.1",
    "cordova-plugin-keyboard": "^1.2.0",
    "cordova-plugin-nativegeocoder": "^3.1.2",
    "cordova-plugin-request-location-accuracy": "^2.2.3",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-sqlite-storage": "^2.3.3",
    "ionic-angular": "3.8.0",
    "ionicons": "3.0.0",
    "minimist": "^1.2.0",
    "moment-duration-format": "^2.2.2",
    "moment-timezone": "^0.5.21",
    "ng2-currency-mask": "^5.3.1",
    "ng2-stomp": "^1.0.6",
    "rxjs": "^6.2.1",
    "rxjs-compat": "^6.2.1",
    "sockjs-client": "^1.1.5",
    "sw-toolbox": "3.6.0",
    "xml2js": "^0.4.19",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.0.1",
    "@types/moment-duration-format": "^2.2.0",
    "@types/moment-timezone": "^0.5.6",
    "typescript": "^2.9.2",
    "webpack-cli": "^3.1.0"
  },
  "config": {
    "ionic_generate_source_map": "true"
  },
  "description": "Platform for providing drive services",
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-nativegeocoder": {
        "LOCATION_WHEN_IN_USE_DESCRIPTION": "Use geocoder service"
      },
      "cordova-sqlite-storage": {},
      "cordova-plugin-googlemaps": {
        "API_KEY_FOR_ANDROID": "AIzaSyB8gNoVltCFAjXQ3EGU1KID-DDsKJYgibA",
        "API_KEY_FOR_IOS": "AIzaSyB8gNoVltCFAjXQ3EGU1KID-DDsKJYgibA",
        "PLAY_SERVICES_VERSION": "15.0.1",
        "ANDROID_SUPPORT_V4_VERSION": "26.1.0"
      },
      "cordova-plugin-request-location-accuracy": {}
    },
    "platforms": [
      "android",
      "browser"
    ]
  }
}

I went through all of this, nothing helps.

Ask me the right questions, I’ll answer.
My regards