Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails with phonegap/cordova 9.0.0 #139

Open
jlchereau opened this issue Oct 18, 2019 · 0 comments
Open

Installation fails with phonegap/cordova 9.0.0 #139

jlchereau opened this issue Oct 18, 2019 · 0 comments

Comments

@jlchereau
Copy link

jlchereau commented Oct 18, 2019

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant