android


Cordova build fails with “Cannot find module lodash/object/assign”


After adding Android to an iOS-only Cordova project, cordova build fails with
Error: Cannot find module 'lodash/object/assign'
I am aware of this question, but there is no xmlbuilder in my plist directory in the globally installed cordova module (/usr/local). So I am unable to try that quick and dirty solution.
The problem persists even after removing Android and re-running cordova build. I'm not aware of having made any changes to the project since last running cordova build except for a tiny change to a js file in www.
Versions: cordova -v: 5.4.1, node -v: v4.2.4, npm -v lodash: 2.14.12 (if that's even the one used here),
cordova plugins list: cordova-hot-code-push-plugin 1.2.5 "Hot Code Push Plugin"
cordova-media-with-compression 2.0.15 "Media With Compression: Alpha Software Edition"
cordova-plugin-customurlscheme 4.1.3 "Custom URL scheme"
cordova-plugin-device 1.1.1 "Device"
cordova-plugin-dialogs 1.2.0 "Notification"
cordova-plugin-file 4.1.1 "File"
cordova-plugin-inappbrowser 1.3.0 "InAppBrowser"
cordova-plugin-iosrtc 2.2.2 "iosrtc"
cordova-plugin-media-capture 1.2.1-dev "Capture"
cordova-plugin-whitelist 1.2.1 "Whitelist"
cordova-plugin-x-socialsharing 5.0.10 "SocialSharing"
cordova-universal-links-plugin 1.1.0 "Universal Links Plugin"
ionic-plugin-keyboard 1.0.8 "Keyboard"
phonegap-plugin-push 1.5.3 "PushPlugin"
Turns out it seems to be an issue with a plugin.
I created a separate blank project, added all plugins, added the android platform, then "cordova build" and – boom – the same response again. I then removed them one by one and always removed and added android afterwards, and built again until the error message disappeared.
Then, I just uninstalled that plugin in my main project, added android, and installed the plugin again. The error message has since disappeared.
Maybe this is helpful for someone.

Related Links

Android Web view swiping for Arabic version
Bitmap Shader with alpha channel. (Alpha is drawing black..?)
How we can get BootAnimation.zip Location in android with adb.exe?
Shortcuts for <activity-alias> disappear on Jelly Bean
Viewflow unable to set TextView Data into other layout
How to authenticate multiple accounts in Android dropbox sdk 1.5.1?
What Type of Hash is the Test Device ID of AdMob?
Move Image Taken With Camera Leaves Broken Link Unitl SD Card Remount
startService restart my service if currently running, the Android docs say the opposite
Localization for android EditText [duplicate]
Programatically give space between buttons in table layout
Not receiving an Intent back from Zxing barcode scanner
Android app doesn't work on Android 4
Add item in listview only if not already present
Streaming Webcam in android using yawcam
setTextureRegion AnimatedSprite

Categories

HOME
notepad++
google-cloud-platform
deep-learning
powerpoint
battery
nsbundle
maxscript
google-schemas
little-proxy
google-chrome-app
pega
android-securityexception
tput
symfony-2.8
mvc-mini-profiler
asp.net-mvc-viewmodel
foreign-keys
identity-management
nodemcu
spring-async
gulp-watch
react-toolbox
qliksense
comparator
interbase
stackexchange
progress-bar
dotspatial
anki
dst
pop3
html-encode
video-capture
protege4
alphabetical
comparison-operators
vaadin-charts
optimizely
dotnet-httpclient
openblas
payara-micro
video-conferencing
filenet
branch-prediction
donations
materialized-path-pattern
gets
google-cloud-console
async.js
scaffolding
exim4
directdraw
sapi
linklabel
qt5.2
branch-and-bound
kubuntu
android-broadcast
apache-spark-1.3
beatsmusic
browserify-shim
unix-socket
alternate
extjs2
model-driven-development
oocss
tlf
cffile
composite-component
extreme-programming
qi4j
midlet
sentestingkit
vfs
faye
lambdaj
ilasm
node-redis
mysql-error-1205
multiplatform
cuteeditor
msr
socketserver
photolibrary
objective-j
maven-1
dot-emacs
addchild
zen
murmurhash
data-mapping
skype4java
fdf
wcf-proxy
idatareader

Resources

Encrypt Message