ionic cordova run android --prod not working [duplicate]

谁都会走 提交于 2019-11-28 10:30:24

问题


when I try to run my app in a device by using --prod command I get this Error:

ionic info:

C:\Users\INPT1\Desktop\ionic3\myApp>ionic info

cli packages: `(C:\Users\INPT1\AppData\Roaming\npm\node_modules)`

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

Global packages:

    cordova (Cordova CLI) : 7.1.0

Local packages:

    @ionic/app-scripts : 3.1.5
    Cordova Platforms  : none
    Ionic Framework    : ionic-angular 3.9.2

System:

    Node : v6.10.0
    npm  : 5.5.1
    OS   : Windows 8.1

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro

回答1:


1.)It shows that module is declaration of two parts so do as follow:

  • -->Delete video.module.ts file from your page.
  • -->Remove @IonicPage() from the video.ts file, also remove import {IonicPage}
  • -->Do this for all pages and try running using --prod.


来源:https://stackoverflow.com/questions/47832145/ionic-cordova-run-android-prod-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!