Skip to content
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

Getting SQL.Database is not a constructor #8

Open
ghoufal75 opened this issue Aug 24, 2023 · 2 comments
Open

Getting SQL.Database is not a constructor #8

ghoufal75 opened this issue Aug 24, 2023 · 2 comments

Comments

@ghoufal75
Copy link

While importing any mbtiles file, i get this error :
image
I had an error before that was about assigning a value to a readonly property named stack, so after searching a bit i figured that i had to update the sql.js library to a newer version, then i got this error. Can you help me encounter this please. Thank you.

@MarcoRettoreDev
Copy link

MarcoRettoreDev commented Oct 17, 2023

Hello, could you solve it? I'm facing the error you wrote about, my app was build with Ionic 7 (vite) and React
image

I tested the plugin using vanillaJs and it worked, so i think its a problem realted to the environment

@ghoufal75
Copy link
Author

ghoufal75 commented Oct 17, 2023

@MarcoRettoreDev if i still remember you should downgrade the sql.js librairy of leaflet-tilelayer-mbtles-ts to 0.5.0. Get over to node_modules of your project and head to the library then install [email protected] and trynna rerun it again. Try this and let me now if it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants