I came across a problem while doing some Cordova/PhoneGap Plugin Development that I thought I would share my solution to.
The problem was when using the Cordova Command Line Tool to remove a plugin which was for the iOS and Android platforms I got this error:
TypeError: Uh oh! Arguments to path.join must be strings
The problem for me was an incorrect setting in my plugin.xml file specific to the Android portion of the plugin. When you create a plugin, a plugin.xml file is necessary to make it work. For each platform you want it to work on, you must add an entry to that file. For example, the Android entry would look like this:
The issue for me was caused by an incorrect source-file tag, I had the following:
You MUST have a target-dir attribute specified as well:
I hope this helps. Feel free to share your solutions or whether this worked for you in the comments.