katzer / cordova-plugin-badge

Access and modify badge numbers
Apache License 2.0
408 stars 253 forks source link

Installation fails with phonegap/cordova 9.0.0 #139

Open jlchereau opened 5 years ago

jlchereau commented 5 years ago
Failed to install 'cordova-plugin-badge': CordovaError: Using "requireCordovaModule" to load non-cordova module "fs" is not supported. Instead, add this m
odule to your dependencies and use regular "require" to load it.
    at Context.requireCordovaModule (C:\Users\xxx\AppData\Roaming\npm\node_modules\phonegap\node_modules\cordova-lib\src\hooks\Context.js:57:15)
    at module.exports (C:\Project\hooks\removeAdFramework.js:9:20)
    at runScriptViaModuleLoader (C:\Users\xxx\AppData\Roaming\npm\node_modules\phonegap\node_modules\cordova-lib\src\hooks\HooksRunner.js:181:32)
    at runScript (C:\Users\xxx\AppData\Roaming\npm\node_modules\phonegap\node_modules\cordova-lib\src\hooks\HooksRunner.js:157:16)
    at C:\Users\xxx\AppData\Roaming\npm\node_modules\phonegap\node_modules\cordova-lib\src\hooks\HooksRunner.js:125:20
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
Using "requireCordovaModule" to load non-cordova module "fs" is not supported. Instead, add this module to your dependencies and use regular "require" to
load it.