requireCordovaModule + shelljs
See original GitHub issueBug Report
Problem
I’m trying to make test app for windows platform with ionic but it returns this error
Information
Using "requireCordovaModule" to load non-cordova module "shelljs" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
Command or Code
ionic cordova build windows
Environment, Platform, Device
Windows 10
Version information
Ionic 5 Cordova 9.0.0 (cordova-lib@9.0.1) VS 2019 VS Code
Checklist
- I searched for existing GitHub issues
- I updated all Cordova tooling to most recent version
- I included all the necessary information above
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Cordova Lib 9.0.0 Released!
After the update, I receive the following message: using "requirecordovamodule" to load the non-Cordova "q" module is not supported. Instead, ...
Read more >Install node dependencies for Cordova plugin - Stack Overflow
I you're looking for to add npm modules to your Cordova project, you don't need a plugin, juste use a simple hook triggered...
Read more >cordova-custom-config | Yarn - Package Manager
Cordova/Phonegap plugin to update platform configuration files based on preferences and config-file data defined in config.xml.
Read more >Shell.js cheatsheet - Devhints
One-page guide to Shell.js: usage, examples, and more. ShellJS is a portable (Windows/Linux/OS X) implementation of Unix shell commands on top of the ......
Read more >Using NPM to manage dependencies in a Cordova Plugin
requireCordovaModule ('shelljs'); shell.cd(context.opts.plugin.dir); shell.exec('npm install'); };. To have the hook execute we need to add a <hook> node to ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@robertnicjoo If your using the
phonegap/phonegap-plugin-barcodescanner
plugin, there is already a PR to fix this but has not been merged or released yet. Please wait until this PR is merged and a new release of the plugin is available. https://github.com/phonegap/phonegap-plugin-barcodescanner/pull/780If it is another barcodescanner plugin, as dpogue and janpio said, ask the plugin developers to fix and release an updated plugin.
@erisu thanks man, yes that’s the plugin that i used I guess i’ll just wait till that pr merged.