Why I can't compile Flutter Web with sqlite3?

90 Views Asked by At

I'm looking to compile my current flutter application to the web and I run into some problem.

My application works well on Android and iOS. I'm using drift and sqlite3 for the mobile and as it's not working on the web, I did the workaround to be able to use it.

I added the 2 files to the web folder (drift_worker.js and sqlite3.wasm) but I can still can launch it.

My first screenshot is the web architecture with the proper documentation from the website

enter image description here

And this one is the current error

enter image description here

I tried to flutter clean and etc but nothing change. My current version is 3.16.4 and dart in 3.2.4 and I'm compiling on Chrome(web-javascript).

Am I missing something ?

0

There are 0 best solutions below