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.
How to change the apk name based in a “property” in the productflavor
OrderByValue while applying equalTo(“Key”)
How to change Preference icon color globally Android
Android list adapter non-static method add(T) cannot be referenced from a static context
Re-using CursorLoader when Spinner calls onItemSelected
recyclerView.adapter on notifydatasetchanged hangs the ui android [duplicate]
How to create Nexus 5 Android emulator by using command line
Change support ActionBar tabs indicator color
Android: What exactly happens when getInputStream is called?
Firebase send notifications to users
How can I compile a Titanium project using an old SDK (< 6.0.0.GA)?
How to open a copy of a Android project with a different name?
Lazy initialization of Fabric kits?
Your device isn´t compatible with this version
Android : Changing camera Permission externally from settings causes apps shared preferences clears
Android listview get most center view position while scrolling