且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何用Apache Cordova漏洞修复应用程序?

更新时间:2023-09-11 21:14:22

我发布这个以防其他人陷入同一个陷阱:我得到这个错误,并且在升级到最新版本的科尔多瓦(6.2.0)。我升级了我的平台和我的所有插件,但错误仍然存​​在。最终我发现了一个旧的,被遗忘的未被使用的cordova.js备份副本,它被深埋在一个子文件夹中。虽然这个旧文件没有被我的应用程序调用,但Google的文本搜索却发现它并且失败了我的应用程序。文件被删除,错误修复!

I'm posting this in case someone else falls into the same trap: I got this error, and it persisted after upgrading to the latest version of Cordova (6.2.0). I upgraded my platforms and all of my plugins, but the error persisted. Eventually I discovered an old, forgotten and unused backup copy of cordova.js buried deep in a subfolder. Although this old file was not being called by my application, Google's text search was finding it and failing my app. File deleted, bug fixed!