-
Notifications
You must be signed in to change notification settings - Fork 713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin breaks electron builds (cordova.js:1171 Uncaught Error: Module cordova-sqlite-storage.sql does not exist.) #985
Comments
I hope to test this in the near future, adding a bug label for now. Thanks. |
Anyone found a solution to this? Or maybe a workaround? I'm getting the same issue doing: ionic cordova build browser after adding this version of the plugin |
Anything new regarding this issue? I would really love to us this plugin for electron |
I also just came across this problem. Effectively you can't build for Electron that doesn't use sqlite and for iOS that does use sqlite plugin on the same machine. Any workaround available? Thanks |
I have a workaround but it is not pretty.
If you want to build another platform that uses cordova-sqlite-storage plugin, then you will need to add the plugin again |
Hi the problem is the missing sql-asm-memory-growth.js file which is present in the plugins/cordova-sqlite-storage/node_modules/cordova-sqlite-storage-dependencies but when i open the electron Application and search for this path its not there. Then i realized for some reason electron-builder does not copy directories named "node_modules" into my application which can be manged in seperate electon applcations by just giving a configration called
but not albe to do that in cordova application so only thing left for us is to use cordova hooks to do two things
Please use the below hook as refernce and do the job in config.xml inside the
Create a file called after_prepare.js inside hooks folder and paste the below code
|
Thanks for a better workaround. I have implemented the hook, albeit in a different scripting language and can confirm it works. |
If the plugin is added to project it breaks electron builds with the following errors printed to console:
I understand that the plugin does not support electron platform but it used to not actively break it either.
The issue can be recreated using basic "HelloWorld".
Steps to recreate:
cordova create helloworld com.example.hello HelloWorld
cordova platform add [email protected]
cordova plugin add cordova-sqlite-storage
cordova build electron --debug
./platforms/electron/build/
This appears to have been introduced in plugin version
5.1.0
as it still works fine on5.0.0
Those are additional version comparisons:
The text was updated successfully, but these errors were encountered: