Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Error: Cannot find module 'recursive-readdir' #12

Closed
3 of 5 tasks
shekhar-shubhendu opened this issue Jun 23, 2020 · 1 comment
Closed
3 of 5 tasks

Error: Cannot find module 'recursive-readdir' #12

shekhar-shubhendu opened this issue Jun 23, 2020 · 1 comment

Comments

@shekhar-shubhendu
Copy link

shekhar-shubhendu commented Jun 23, 2020

Bug report

CHECKLIST

  • I have read the issue reporting guidelines

  • I confirm this is a suspected bug or issue that will affect other users

  • I have reproduced the issue using the example projector provided the necessary information to reproduce the issue.

  • I have read the documentation thoroughly and it does not help solve my issue.

Current behavior:
running cordova prepare android fails as the module hook fails with Error: Cannot find module 'recursive-readdir'

Expected behavior:
When doing cordova prepare android the plugin should install as the command should exit cleanly.

Environment information

  • Cordova CLI version: 9.0.0 (cordova-lib@9.0.1)
    • cordova -v
  • Cordova platform version:
Installed platforms:
android 8.1.0
  • Plugins & versions installed in project (including this plugin)
code-push 3.0.1 "CodePushAcquisition"
cordova-plugin-androidx 2.0.0 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.1.1 "cordova-plugin-androidx-adapter"
cordova-plugin-camera 4.1.0 "Camera"
cordova-plugin-firebasex 9.1.2-cli "Google Firebase Plugin"
phonegap-plugin-multidex 1.0.0 "Multidex"
  • Dev machine OS and version: Windows 10 (1909)

Related code:

Cordova prepare android

Console output

cordova-plugin-androidx-adapter: EXCEPTION: Failed to load dependencies: Error: Cannot find module 'recursive-readdir'

Additional Details

  • I've tried to use only firebasex and remove androidx and androidx-adapter from the package.json but that fails too.
@dpa99c
Copy link
Owner

dpa99c commented Jun 23, 2020

recursive-readdir is a dependency of this plugin.
Something has caused it not to be satisfied during Cordova's dependency resolution. There are numerous possible causes, e.g. an error caused by another plugin during installation.
This is not a bug with this plugin, since the dependency is listed in its package.json and it relies on Cordova to satisfy that dependency.
If you need a quick fix: npm i recursive-readdir --nosave

@dpa99c dpa99c closed this as completed Jun 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants