IBM Worklight 6.0-如何解决丢失的cordova_plugins.json错误?
我正在尝试解决cordova.js与cordova_plugins.json关联的错误。我在Google上找到的补丁提到一个空的json文件就足够了,所以我在我的公共文件夹中添加了cordova_plugins.json,里面有一条简单的消息:IBM Worklight 6.0-如何解决丢失的cordova_plugins.json错误?,cordova,ibm-mobilefirst,Cordova,Ibm Mobilefirst,我正在尝试解决cordova.js与cordova_plugins.json关联的错误。我在Google上找到的补丁提到一个空的json文件就足够了,所以我在我的公共文件夹中添加了cordova_plugins.json,里面有一条简单的消息: { "msg" : "this is a dummy file that might need updating later" } 404错误通过添加此文件得以解决,但我在chrome开发控制台中遇到了一个新错误: Uncaught TypeError
{
"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文件中的一些代码。对于worklight,这是不可能的,因为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: }