离子2/3构建失败

时间:2018-02-12 18:26:10

标签: ionic-framework ionic2 ionic3

我需要帮助,我无法构建我的应用,我收到以下错误:

[19:09:38]  typescript: src/pages/sidemenu/sidemenu.ts, line: 24 
[19:09:38]  typescript: src/pages/sidemenu/sidemenu.ts, line: 25 
[19:09:38]  ionic-app-script task: "build" 
[19:09:38]  Error: Failed to transpile program 
Error: Failed to transpile program
    at new BuildError (/usr/src/app/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
    at /usr/src/app/node_modules/@ionic/app-scripts/dist/transpile.js:137:20
    at Promise ()
    at transpileWorker (/usr/src/app/node_modules/@ionic/app-scripts/dist/transpile.js:103:12)
    at Object.transpile (/usr/src/app/node_modules/@ionic/app-scripts/dist/transpile.js:61:12)
    at buildProject (/usr/src/app/node_modules/@ionic/app-scripts/dist/build.js:97:78)
    at /usr/src/app/node_modules/@ionic/app-scripts/dist/build.js:47:16
    at   

npm info lifecycle payman@0.0.1~build: Failed to exec build script
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! payman@0.0.1 build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the payman@0.0.1 build script.
This is probably not a problem with npm. There is likely additional logging output above.

有人可以帮帮我吗?

1 个答案:

答案 0 :(得分:0)

大部分时间都会发生,因为@ionic/app-scripts的版本尝试删除包并使用npm

重新添加