I'm having an issue with getting SQLDelight on WAS...
# squarelibraries
a
I'm having an issue with getting SQLDelight on WASM working. I'm setting up a new web app module with Compose Multiplatform for my app, and everything else seems to work fine, but for some reason, there is always an error happening in the JS worker. The default worker from NPM is not loaded, and if I use the same code in my custom worker, I'm getting the error with message
{"type":"error"}
and that's it. Looks like something happens inside the worker, but the log statements I sprinkled around the code are not printing anything. Can it be something to do with the SQL.js, or worker itself, or the way I try to create the database? Has anyone had something similar happening before? Any help would be greatly appreciated. Details in thread
Here's the worker, and here's how I set up the SqlDriver for wasm
I suspect that there can be some issue with running
awaitCreate
inside Koin module with the global scope