question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

requireCordovaModule + shelljs

See original GitHub issue

Bug 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
erisucommented, Jun 11, 2019

@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/780

If it is another barcodescanner plugin, as dpogue and janpio said, ask the plugin developers to fix and release an updated plugin.

0reactions
robertnicjoocommented, Jun 11, 2019

@erisu thanks man, yes that’s the plugin that i used I guess i’ll just wait till that pr merged.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found