Cordova Android Upgrade - Cannot find module ‘lodash/object/assign’ Error

时光怂恿深爱的人放手 提交于 2019-12-10 16:01:30

问题


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).



来源:https://stackoverflow.com/questions/35056209/cordova-android-upgrade-cannot-find-module-lodash-object-assign-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!