Reputation: 33
Whenever I remove the "cordova-plugin-ionic": "5.4.7" from package.json, the error goes away and the platform.ready() fires correctly. I have tried removing then running the command 'ionic deploy add' according to the Appflow docs, but it just re-adds the plugin to the package.json.
I need to get rid of this error because it messes with the device ready event, causing the functions inside it to not run. My quick fix was to call the functions outside the platform.ready but it is not a true fix. Been searching for this for quite a while now.
Upvotes: 2
Views: 628
Reputation: 1934
Remove your ios/android folders as well when you remove cordova-plugin-ionic
. then add your platforms first, followed by ionic deploy add
. This will put the configurations correctly.
If you are working on Capacitor v2, it will work.
Upvotes: 1
Reputation: 240
This happened to me after I changed the name of the deploy channel in Ionic Dashboard. Removing the plugin, running ionic cap sync, and then re-adding the plugin with the correct channel name solved the problem.
Upvotes: 1