jen*_*tom 5 javascript node.js ios cordova ionic-framework
从昨天开始,当我尝试为 iO 进行构建时,它不会成功并抛出此错误:
(node:3043) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toLowerCase' of undefined
at /Users/username/Documents/petpo-fe-mobile-bugs/platforms/ios/cordova/lib/list-emulator-build-targets:54:45
at Array.forEach (<anonymous>)
at /Users/username/Documents/petpo-fe-mobile-bugs/platforms/ios/cordova/lib/list-emulator-build-targets:52:44
at Array.reduce (<anonymous>)
at /Users/username/Documents/petpo-fe-mobile-bugs/platforms/ios/cordova/lib/list-emulator-build-targets:50:57
at Array.reduce (<anonymous>)
at /Users/username/Documents/petpo-fe-mobile-bugs/platforms/ios/cordova/lib/list-emulator-build-targets:45:28
at _fulfilled (/Users/username/Documents/petpo-fe-mobile-bugs/platforms/ios/cordova/node_modules/q/q.js:854:54)
at /Users/username/Documents/petpo-fe-mobile-bugs/platforms/ios/cordova/node_modules/q/q.js:883:30
at Promise.promise.promiseDispatch (/Users/username/Documents/petpo-fe-mobile-bugs/platforms/ios/cordova/node_modules/q/q.js:816:13)
(node:3043) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3043) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.Run Code Online (Sandbox Code Playgroud)
我已经尝试从 git 中检查出一个新项目,删除和重新安装模块,删除和读取 ionic 平台,我不知道我还能尝试什么。请问,有人能给我一些关于这个问题的启示吗?
提前致谢。
toLowerCase在plugins/cordova-plugin-ios-localized-strings/scripts/add_supported_languages.js中使用?
如果是,则该值未定义。
请尝试运行:ionic build --prod
如果您遇到错误 -> 您的代码有问题。
如果您没有遇到错误 -> 问题发生在 cordova 捆绑您的应用程序时。
如果是最后一个选项,请从 bash (而不是 cmd)执行:ionic cordova build ios --prod或尝试再次删除并添加您的平台。
-此致。
| 归档时间: |
|
| 查看次数: |
1310 次 |
| 最近记录: |