dpa99c / cordova-custom-config

Cordova/Phonegap plugin to update platform configuration files based on preferences and config-file data defined in config.xml
317 stars 85 forks source link

i am getting this error when i build or serve the ionic app #134

Closed shatrudhan closed 6 years ago

shatrudhan commented 6 years ago

Error: Cannot find module 'elementtree' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (F:\s-ionic\ribblu-ionic-1.0.2\node_modules\ionic\node _modules\@ionic\cli-utils\lib\cordova\config.js:6:12) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3)

dpa99c commented 6 years ago

At a first glance, that error does not appear to arise from this plugin:

While this plugin depends on and uses elementtree, the stacktrace you have posted doesn't correspond to the hook scripts of this plugin. This is because the loading of dependencies is explicitly wrapped in a try/catch block to handle dependency errors. Therefore I'd expect the error, if caused by this plugin's hook scripts, to look more like that in #120, i.e.

Error: Error loading dependencies - ensure the plugin has been installed via cordova-fetch or run 'npm install cordova-custom-config': Cannot find module 'elementtree'

If you think this plugin is the cause of your error, please give additional information:

Also see the installation section in the documentation.

dpa99c commented 6 years ago

Closed due to no response from OP