Ionic 3: Build in “prod” mode: Cannot find module “.”

前端 未结 5 1076
南旧
南旧 2021-01-18 04:17

we have a large Ionic app that we’re trying to build in production mode since it’s almost ready. The first issue we found is that we w

5条回答
  •  时光取名叫无心
    2021-01-18 04:51

    Got this error with a new version and I checked the ionic-angular imports and it's fine.

    package.json

    "typescript": "3.1.6"
    

    Ionic info

     ionic (Ionic CLI)  : 4.4.0
       Ionic Framework    : ionic-angular 3.9.2
       @ionic/app-scripts : 3.2.0
    
    Cordova:
    
       cordova (Cordova CLI) : 8.1.1 (cordova-lib@8.1.0)
       Cordova Platforms     : android 7.0.0, browser 5.0.3
       Cordova Plugins       : no whitelisted plugins (0 plugins total)
    

    error

    vendor.js:138159 Uncaught Error: Cannot find module "."
        at webpackMissingModule (vendor.js:138159)
        at vendor.js:138159
        at Object. (vendor.js:138168)
        at __webpack_require__ (vendor.js:55)
        at Object. (main.js:16031)
        at __webpack_require__ (vendor.js:55)
        at webpackJsonpCallback (vendor.js:26)
        at main.js:1
    

提交回复
热议问题