无法在生产中构建离子化应用,由于Typescript错误而卡住

时间:2018-10-07 16:16:53

标签: typescript ionic-framework

每当我尝试在--prod中构建我的应用程序时,都会给我打字稿错误

typescript error 
        Cannot write file '/Users/vineetranjan/Documents/testapp/node_modules/instamojo-nodejs/instamojo.js' because 
        it would overwrite input file. 

[21:35:38]  ionic-app-script task: "build" 
[21:35:38]  Error: The Angular AoT build failed. See the issues above 
Error: The Angular AoT build failed. See the issues above
at /Users/vineetranjan/Documents/testapp/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:232:55
at step (/Users/vineetranjan/Documents/testapp/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23)
at Object.next (/Users/vineetranjan/Documents/testapp/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:13:53)
at fulfilled (/Users/vineetranjan/Documents/testapp/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:4:58)
at <anonymous>

在没有--prod的情况下构建它没有问题。

0 个答案:

没有答案