[英]IBM Worklight 6.0 - How to resolve the missing cordova_plugins.json error?
我正在尝试解决与cordova_plugins.json相关的cordova.js错误。 我在Google上找到的修复程序提到一个空的json文件就足够了,因此我将cordova_plugins.json添加到了我的公用文件夹中,并在其中添加了一条简单消息:
{
"msg" : "this is a dummy file that might need updating later"
}
404错误已通过添加此文件解决,但我在chrome开发者控制台中遇到了一个新错误:
Uncaught TypeError: Object #<Object> has no method 'require' cordova.js:6359
这是cordova.js中的代码块:
6355: // Called when:
6356: // * There are plugins defined and all plugins are finished loading.
6357: // * There are no plugins to load.
6358: function finishPluginLoading() {
6359: context.cordova.require('cordova/channel').onPluginsReady.fire();
6360: }
要在线解决此错误,需要删除此cordova.js文件中的某些代码。 对于worklight,这是不可能的,因为cordova.js是在构建时重建/覆盖的。
请查看我对以下问题的回答: IBM Worklight 6.0-如何处理Cordova.js文件?
该错误是无害的。 它将在将来的版本中消失。 我的建议是继续前进而忽略它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.