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 : cordova-custom-config: Error updating config for platform 'android': undefined is not a function #21

Closed
ms3eed opened this issue Jan 14, 2016 · 3 comments

Comments

@ms3eed
Copy link

ms3eed commented Jan 14, 2016

Using your example project
While trying to run cordova prepare android --verbose I always get the below error

My Cordova veriosn 5.0.0

TypeError: undefined is not a function
at getConfigFilesByTargetAndParent (/home/mostafa/workspace/cordova-custom-config-example/plugins/cordova-custom-config/hooks/applyCustomConfig.js:100:19)
at parseConfigFiles (/home/mostafa/workspace/cordova-custom-config-example/plugins/cordova-custom-config/hooks/applyCustomConfig.js:201:27)
at parseConfigXml (/home/mostafa/workspace/cordova-custom-config-example/plugins/cordova-custom-config/hooks/applyCustomConfig.js:114:9)
at updatePlatformConfig (/home/mostafa/workspace/cordova-custom-config-example/plugins/cordova-custom-config/hooks/applyCustomConfig.js:431:26)
at /home/mostafa/workspace/cordova-custom-config-example/plugins/cordova-custom-config/hooks/applyCustomConfig.js:486:17
at arrayEach (/home/mostafa/node_modules/lodash/lodash.js:446:11)
at Function.forEach (/home/mostafa/node_modules/lodash/lodash.js:7482:11)
at applyCustomConfig.init (/home/mostafa/workspace/cordova-custom-config-example/plugins/cordova-custom-config/hooks/applyCustomConfig.js:483:11)
at /home/mostafa/workspace/cordova-custom-config-example/plugins/cordova-custom-config/hooks/resolveDependencies.js:46:11
at installRequiredNodeModules (/home/mostafa/workspace/cordova-custom-config-example/plugins/cordova-custom-config/hooks/resolveDependencies.js:109:7)

May you help on that?

@dpa99c
Copy link
Owner

dpa99c commented Jan 14, 2016

Cause is the backwardly-incompatible update released to lodash library yesterday - see #20.
Will fix when I get some time as fix is non-trivial.

@ms3eed
Copy link
Author

ms3eed commented Jan 14, 2016

Thanks Dave

@dpa99c
Copy link
Owner

dpa99c commented Jan 14, 2016

Fixed by 9e89712

@dpa99c dpa99c closed this as completed Jan 14, 2016
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

2 participants