Deno, Sveltekit and adapter node build issue (+DuckDB)
Wondering if this is a SvelteKit/Rollup or Deno or DuckDB-WASM issue.
My build errors due to missing "node:" specifiers. If I add those manually (i.e. go into the build files and add node: specifiers) it all works.
Is this an issue with SvelteKit, with Deno or with DuckDB? Screenshot is the unadjusted build.
5 Replies
Specify those imports as from the node library like this:
@bondsandbarrels
Afraid this didn't work.. I added a deno.json to the root of the project, put the imports block in there, removed previous build folder and rebuild. The result is the same.
Oh wait! You mean after building, just run it with ?
Because that seems to work!
The irony that in order to make a SIMPLER runtime work I have to ADD another config file 😬 . But all good, Deno team is doing amazing things.
Yeah it's not really Deno's fault either, It's more of a SvelteKit issue for not explicitly prefixing the imports with "node:". Glad I could help
Report it on the SvelteKit GitHub repo and they'll fix it (or create a PR). They've been gradually updating things to make it compatible with Deno but people need to get involved.
Yes, I guess it's Rollup that would have to do it. Will try to find some time to report it.