Nick Williams
09/13/2023, 9:39 PMimport.meta.url
as a second argument to the URL
constructor. Webpack will automatically bundle the worker script from the referenced NPM package at build time"
The frontend project consuming the kotlin project using sqldelight is using vite and im getting this error in the console:
sqljs.worker.js:1 GET <http://localhost:3000/node_modules/.vite/deps/@cashapp/sqldelight-sqljs-worker/sqljs.worker.js?type=classic&worker_file> 504 (Gateway Timeout)
The folder @cashapp
does not exist in the .vite/deps
folder, vite docs mention web workers but my knowledge about this is not enough to know what to change here, hoping someone here might have an idea?