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 " Cannot find module ‘lodash/object/assign’ Error " , i also went through this and this but none of them are working , please guide me to resolve.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答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).