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

Error: Cannot find module 'elementtree' #11

Closed
oak-tree opened this issue Nov 9, 2015 · 8 comments
Closed

Error: Cannot find module 'elementtree' #11

oak-tree opened this issue Nov 9, 2015 · 8 comments

Comments

@oak-tree
Copy link

oak-tree commented Nov 9, 2015

Adding android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: co.centure.mobile
Name: CNATURE
Activity: MainActivity
Android target: android-22
Copying template files...
Android project created with cordova-android@4.1.0
Error: Cannot find module 'elementtree'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (C:\Users\oak\git\centure\centure-app\beethoven\plugin s\cordova-custom-config\hooks\fileUtils.js:7:10)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)

@oak-tree
Copy link
Author

oak-tree commented Nov 9, 2015

tried to fix by installing global 'elementtree' via npm but still the same problem

@oak-tree
Copy link
Author

oak-tree commented Nov 9, 2015

i fixed by by linking elementtree and tostr to plugin path. but it does seem like configuration the plugin can handle

@oak-tree
Copy link
Author

oak-tree commented Nov 9, 2015

now i see that dep are inside package.json.for some reasoncordova plugin adddoes not runnpm install`

@guillenotfound
Copy link

Facing this as well on 3.x.

What info do you need to help you solve it?

@dpa99c
Copy link
Owner

dpa99c commented Oct 12, 2016

@ZiFFeL1992 Please update to v3.0.8 (remove and re-add plugin). I have fixed several bugs in 3.0.x which should solve your problem

@guillenotfound
Copy link

Will do it, thanks!

@CorentinPacaud
Copy link

I am facing this issue again.
I'm running on npm 4.6.1.
Error loading dependencies (Cannot find module 'elementtree') - attempting to resolve

@Muzietto
Copy link

Muzietto commented Oct 2, 2018

This elementtree module is still giving trouble. See #149

This issue was closed.
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

5 participants