[英]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.