简体   繁体   English

无法读取离子Cordova构建android --prod --release中的属性

[英]Cannot read property in ionic cordova build android --prod --release

Im trying to build my apk for deploying the application in the playstore. 我正在尝试构建用于在Playstore中部署应用程序的APK。 Here is the error. 这是错误。 Im really out of time and I have to fix this error as soon as possible. 我真的没时间了,我必须尽快修复此错误。 Any reference about this is much appreciated. 非常感谢对此的任何参考。

ionic cordova build android --prod --release
Running app-scripts build: --prod --platform android --target cordova
[09:25:34]  build prod started ...
[09:25:35]  clean started ...
[09:25:35]  clean finished in 12 ms
[09:25:35]  copy started ...
[09:25:36]  deeplinks started ...
[09:25:37]  deeplinks finished in 601 ms
[09:25:37]  ngc started ...
Warning: Can't resolve all parameters for AngularFirestore in E:/sdg-biz-mobile/node_modules/angularfire2/firestore/index.d.ts: ([object Object], ?). This will become an error in Angular v6.x
Warning: Can't resolve all parameters for AngularFirestore in E:/sdg-biz-mobile/node_modules/angularfire2/firestore/index.d.ts: ([object Object], ?). This will become an error in Angular v6.x
TypeError: Cannot read property 'flags' of undefined
    at checkUnreachable (E:\sdg-biz-mobile\node_modules\typescript\lib\typescript.js:24905:31)
    at bindChildrenWorker (E:\sdg-biz-mobile\node_modules\typescript\lib\typescript.js:23111:17)
    at bindChildren (E:\sdg-biz-mobile\node_modules\typescript\lib\typescript.js:23055:17)
    at bind (E:\sdg-biz-mobile\node_modules\typescript\lib\typescript.js:24319:21)
    at bindSourceFile (E:\sdg-biz-mobile\node_modules\typescript\lib\typescript.js:22689:17)
    at Object.bindSourceFile (E:\sdg-biz-mobile\node_modules\typescript\lib\typescript.js:22640:9)
    at initializeTypeChecker (E:\sdg-biz-mobile\node_modules\typescript\lib\typescript.js:47988:20)
    at Object.createTypeChecker (E:\sdg-biz-mobile\node_modules\typescript\lib\typescript.js:27142:9)
    at getDiagnosticsProducingTypeChecker (E:\sdg-biz-mobile\node_modules\typescript\lib\typescript.js:69678:93)
    at emitWorker (E:\sdg-biz-mobile\node_modules\typescript\lib\typescript.js:69722:32)
[09:25:50]  copy finished in 14.73 s

I faced this type of errors.Below solution is helped me. 我遇到了这类错误。下面的解决方案对我有帮助。

Step1: 第1步:

rm -rf node_modules

Step2: 第2步:

npm cache clean --force

Step3: 第三步:

Delete package_lock.json

Step4: 第四步:

npm install

I hope it will help you. 希望对您有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 离子科尔多瓦建立android --prod --release错误:app:transformDexWithDexForRelease - ionic cordova build android --prod --release Error :app:transformDexWithDexForRelease 运行ionic cordova build android --prod --release时发生错误 - An error occurred while running ionic cordova build android --prod --release 离子科尔多瓦建立android --prod - ionic cordova build android --prod 离子cordova构建android --prod时出错 - Error in ionic cordova build android --prod Ionic cordova build android –prod –release 只构建一个调试apk (app-debug.apk) - Ionic cordova build android –prod –release only builds a debug apk (app-debug.apk) ionic3 cordova构建android --prod --release效果不理想 - ionic3 cordova build android --prod --release don't get the desired effect 离子cordova build --prod - release失败并产生错误 - ionic cordova build --prod --release fails and generate errors Ionic Cordova Build prod:找不到模块“.” - 打字稿版本 >3 - Ionic Cordova Build prod: Cannot find module “.” - Typescript version >3 科尔多瓦构建/运行android失败:无法读取null的属性“标签” - Cordova build/run android fails: Cannot read property 'tag' of null Cordova Android构建错误“无法读取未定义的属性'长度' - Cordova Android build error “Cannot read property 'length' of undefined”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM