sqlite plugins cannot be installed on Cordova 9, please adjust the plugin.
Same here
Is the issue fixed? or should we revert to the older version of Cordova.
This plugin version should already be fixed.
What is the version containing the fix?
Can you give a try go to ./plugins/cordova-sqlite-storage/scripts/beforePluginInstall.js and add var Q = require('q') on the top of the file and comment out this line var Q = context.requireCordovaModule('q')? I was able to add the ios platform now.
Guys this should be resolved in the latest version (3.2.0). It was also resolved in 3.0.0. Please upgrade to the latest version as I do not have so much time to support questions on older plugin versions.
I'm not shure but I got the same issue when removing the old and then add the new plugin version. I solved this by removing all platforms. Then removing the plugins folder and add the platforms again. Be aware other plugins may also can cause this issue.
Thanks @DavidWiesner, reopening for now. I wonder if this should be raised on Cordova itself?
Tried @DavidWiesner 's solution and it didn't work while building on Ionic Pro. Any suggestions?
Closing as invalid. This plugin is already fixed. Please do the following:
plugins and platforms from your projectplugins and platforms to .gitignore (plugins and platforms should not be committed)In case anyone continues to see this kind of an issue with cordova-sqlite-storage then please make an example project according to https://stackoverflow.com/help/mcve.
I am getting the same error. What's the solution?

Hello I'm having the same issue how I fix it?
In my case the following sequence fixed that issue:
Remove ios platform ionic cordova platform rm ios
Remove android platform ionic cordova platform rm android
Remove sqlite storage plugin ionic cordova plugin rm cordova-sqlite-storage
Install latest sqlite storage npm package npm i cordova-sqlite-storage@latest
Install sqlite storage plugin ionic cordova plugin add cordova-sqlite-storage
Add ios platform ionic cordova platform add ios
Add android platform ionic cordova platform add android
Alternatively run these commands as one line:
ionic cordova platform rm ios; ionic cordova platform rm android; ionic cordova plugin rm cordova-sqlite-storage; npm i cordova-sqlite-storage@latest && ionic cordova plugin add cordova-sqlite-storage; ionic cordova platform add ios; ionic cordova platform add android
Can you give a try go to
./plugins/cordova-sqlite-storage/scripts/beforePluginInstall.jsand addvar Q = require('q')on the top of the file and comment out this linevar Q = context.requireCordovaModule('q')? For me now i was able to add the ios platform now.
It wroks for me thanks
Can you give a try go to
./plugins/cordova-sqlite-storage/scripts/beforePluginInstall.jsand addvar Q = require('q')on the top of the file and comment out this linevar Q = context.requireCordovaModule('q')? I was able to add the ios platform now.
Works for Android as well. Thx!
Issues with a "q" module indicate use of an old version of this plugin in plugins or platforms directories. Old versions of this plugin are not supported and are known to be missing security and data integrity updates. Please check the following items very carefully:
config.xml (Cordova should migrate plugins from config.xml but I have seen issues with this in the past)cordova plugin add command to add most recent version of this plugin, if it is not already configuredThen it should be possible to add and rebuild on Android, iOS, macOS ("osx"), and Windows.
In my case the following sequence fixed that issue:
Remove ios platform
ionic cordova platform rm ios
Remove android platformionic cordova platform rm android
Remove sqlite storage pluginionic cordova plugin rm cordova-sqlite-storageInstall latest sqlite storage npm package
npm i cordova-sqlite-storage@latest
Install sqlite storage pluginionic cordova plugin add cordova-sqlite-storage
Add ios platformionic cordova platform add ios
Add android platformionic cordova platform add androidAlternatively run these commands as one line:
ionic cordova platform rm ios; ionic cordova platform rm android; ionic cordova plugin rm cordova-sqlite-storage; npm i cordova-sqlite-storage@latest && ionic cordova plugin add cordova-sqlite-storage; ionic cordova platform add ios; ionic cordova platform add android
And also in conjunction with this too:
npm install -g [email protected]
Most helpful comment
In my case the following sequence fixed that issue:
Remove ios platform
ionic cordova platform rm iosRemove android platform
ionic cordova platform rm androidRemove sqlite storage plugin
ionic cordova plugin rm cordova-sqlite-storageInstall latest sqlite storage npm package
npm i cordova-sqlite-storage@latestInstall sqlite storage plugin
ionic cordova plugin add cordova-sqlite-storageAdd ios platform
ionic cordova platform add iosAdd android platform
ionic cordova platform add androidAlternatively run these commands as one line:
ionic cordova platform rm ios; ionic cordova platform rm android; ionic cordova plugin rm cordova-sqlite-storage; npm i cordova-sqlite-storage@latest && ionic cordova plugin add cordova-sqlite-storage; ionic cordova platform add ios; ionic cordova platform add android