Cordova APP 升级后报错的解决

错误

Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.

解决:
根据提示将 ./hooks.js 中的 ctx.requireCordovaModule 替换为 require 就好了

你可能感兴趣的:(Cordova APP 升级后报错的解决)