Is it possible to use SQLite in an Ionic React app that uses capacitor, in a browser?
Background: My client has a really old Ionic/Angular app that’s actively still being used in both IOS and Android. They want me to make quite a few changes to the app but first I need to change it to use current versions of everything. Being that I’m more familiar with react than angular and the client doesn’t really care which language is used, I figured I should re-write it in React.
Issue: The app is extremely dependent on local sqlite database, almost everything in the app is based on CRUD SQL queries. I would like to get the same to work in React. I’m having issues running this in the browser and to run it only on a simulator or actual device is extremely slow when you’re making constant changes
What I tried: I’m following this code GitHub - jepiqueau/react-sqlite-app-starter: Ionic/React SQLite Application Starter
The error I’m getting is:
The jeep-sqlite element is not present in the DOM! Please check the @capacitor-community/sqlite documentation for instructions regarding the web platform.
I don’t know how to continue. If anyone can suggest a solution or point me to a tutorial I would greatly appreciate it