I had the same error. Im’ not 100% sure, but I think it has to do with plugins: I had one which had been removed from the config.xml file, but the folder still existed in src-cordova/plugins. Make sure this folder, the config file and src-cordova/package.json are all on the same page when it comes to plugins.