Open uselessai opened 6 years ago
I had faced similar issue, then performed following steps (not sure which one fixed the issue) and now it's working fine.
1) Updated dependencies as per https://github.com/ionic-team/ionic/blob/master/package.json. Also a devDependency @ionic/app-scripts
to 3.0.1.
2) Reinstalled cordova-sqlite-storage and cordova-sqlite-ext plugins
3) Removed and added the platform again
Same question raised in litehelpers/cordova-sqlite-ext#67, same answer:
It is not possible to install multiple sqlite plugins. Duplicate symbols will result. This will be documented as a pitfall.
I just raised apache/cordova-discuss#81 to safeguard against such a combination in the Cordova framework.
Ok.. if I only install the cordova-sqlite-ext I get the next error..
CDVPlugin class SQLitePlugin (pluginName: SQLitePlugin) does not exist. 2017-11-23 20:16:42.092 Part App[80809:2136810] ERROR: Plugin 'SQLitePlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml. 2017-11-23 20:16:42.094 Part App[80809:2136810] FAILED pluginJSON = ["SQLitePlugin1865426559","SQLitePlugin","open",
@DetoloX brodybits / cordova-sqlite-ext-bootstrap-starter-app is the recommended starting point for an app using the cordova-sqlite-ext plugin version; please ask in litehelpers / Cordova-sqlite-help / issues in case of further troubles.
In case of multiple sqlite plugins installed the behavior should be considered UNDEFINED. It may lead to compile error, runtime error, data loss due to multiple sqlite problem discussed in #626, other forms of data loss, etc. etc. Will be documented.
how you attached a sqlite pre populated database to ionic app ? I'm facing this trouble two weeks ago, I have a pre filled database and I don't want to create the tables from scratch Please I will appreciate your help Thank you @yincany
When I install this 2 plugins I am getting this error in iOS. And I need cordova-sqlite-ext because I am using a prepopulated database.. In android works perfectly..
[ERROR] An error occurred while running cordova build ios (exit code 1):