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

Failed to install 'cordova-plugin-crosswalk-webview': CordovaError: Using "requireCordovaModule" #123

Open
chandanchhajer opened this issue Oct 16, 2019 · 0 comments

Comments

@chandanchhajer
Copy link

As I run this command: ionic cordova platform add android
I got this error:

Using cordova-fetch for cordova-android@^8.0.0

Adding android project...

Creating Cordova project for the Android platform:

Path: platforms/android

Package: com.ionicvideochat.v3

Name: ionic_video_chat_3

Activity: MainActivity

Android target: android-28

Subproject Path: CordovaLib

Subproject Path: app

Android project created with [email protected]

Installing "cordova-plugin-crosswalk-webview" for android

Subproject Path: CordovaLib

Subproject Path: app

    After much discussion and analysis of the market, we have decided to discontinue support for Android 4.0 (ICS) in Crosswalk starting with version 20.

    So the minSdkVersion of Cordova project is configured to 16 by default.

Failed to install 'cordova-plugin-crosswalk-webview': CordovaError: 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.
at Context.requireCordovaModule (/home/arthonsys/.nvm/versions/node/v8.11.3/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/Context.js:57:15)
at module.exports (/home/arthonsys/Documents/CHANDAN/ionic-chat/ionic-video-chat/plugins/cordova-plugin-crosswalk-webview/hooks/after_plugin_install/000-shared_mode_special.js:6:28)
at runScriptViaModuleLoader (/home/arthonsys/.nvm/versions/node/v8.11.3/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:181:32)
at runScript (/home/arthonsys/.nvm/versions/node/v8.11.3/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:16)
at /home/arthonsys/.nvm/versions/node/v8.11.3/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:125:20
at
at process._tickCallback (internal/process/next_tick.js:188:7)
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.
[ERROR] Exception:

Can anyone help me to resolve this issue?

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