Skip to content Skip to sidebar Skip to footer

Cordova Android Upgrade - Cannot Find Module ‘lodash/object/assign’ Error

I have build Cordova (version - 2.9) Android App using gradle, now i want to upgrade cordova using cordova platform update android command but all time it gives me following error

Solution 1:

There is no folder object in cordova\node_modules\cordova-lib\node_modules\plist\node_modules\xmlbuilder\node_modules\lodash - therefore, require/resolveFilename fails.

Quick and dirty solution: make a copy of the existing folder fp in cordova\node_modules\cordova-lib\node_modules\plist\node_modules\xmlbuilder\node_modules\lodash and rename it to object. I had to copy it two more times (collection and lang were missing as well).

Post a Comment for "Cordova Android Upgrade - Cannot Find Module ‘lodash/object/assign’ Error"