Cordova Android升级 - 找不到模块“lodash / object / assign”错误 [英] Cordova Android Upgrade - Cannot find module ‘lodash/object/assign’ Error

查看:492
本文介绍了Cordova Android升级 - 找不到模块“lodash / object / assign”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用gradle创建Cordova(版本 - 2.9)Android应用程序,现在我想使用 cordova平台更新android 命令升级cordova,但所有时间它给我以下错误找不到模块'lodash /对象/分配'错误,我也经历了

解决方案

对象中没有文件夹 。cordova \\\
ode_modules\cordova-lib \\\
ode_modules \plist\\\
ode_modules\xmlbuilder\\\
ode_modules\\



快速和肮脏的解决方案:复制现有文件夹 fp / strong>中,并将其重命名为对象,即可将其重命名为 。我必须再复制两次(集合 lang )。


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.

解决方案

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

这篇关于Cordova Android升级 - 找不到模块“lodash / object / assign”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆