I think it could have been caused by not using the command line ionic cordova plugin.
I copied the dependencies from an old package.json file into the current app and ran npm install.
I will often start with the blank app and update the src folder and package.json file from an existing app - that way it does not get bloated.
I have not had to use cordova until now - so it has been a bit of learning curve.