我尝试运行ionic cordova run android
时收到错误:
错误:无法转换程序
在新的BuildError (/home/sevenbits/sevenbits-git/androidapplications/IonicBlockchainApp/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
at /home/sevenbits/sevenbits-git/androidapplications/IonicBlockchainApp/node_modules/@ionic/app-scripts/dist/transpile.js:159:20
在新的Promise()
在transpileWorker上(/home/sevenbits/sevenbits-git/androidapplications/IonicBlockchainApp/node_modules/@ionic/app-scripts/dist/transpile.js:107:12)
at Object.transpile(/home/sevenbits/sevenbits-git/androidapplications/IonicBlockchainApp/node_modules/@ionic/app-scripts/dist/transpile.js:64:12)
at /home/sevenbits/sevenbits-git/androidapplications/IonicBlockchainApp/node_modules/@ionic/app-scripts/dist/build.js:109:82
at <anonymous>
我真的不知道错误的来源。我该如何解决?
答案 0 :(得分:1)
我通过键入npm install typescript@2.7.2更新了打字稿,并开始工作。
答案 1 :(得分:0)
请尝试将ionic/app-scripts
锁定到v3.2.3,如果有其他问题,也可以使用ionic doctor check
。