Closed fractalf closed 2 years ago
Hm, it seems like bundling is failing due to including a Node dependency, do you have a Deno compatible alternative for the better-sqlite3
package you're using?
Ah right, it didn't occur to me that I'd have to use a "deno compatible" library. I guess I naively thought I could use any node lib with deno...
Anyway, I found this after a search, so I'll try that later when I'm back on my pet project track.
https://deno.land/x/sqlite@v3.4.0
Thanks :)
EDIT
Ofc the above deno package doesn't work, because the svelte-kit uses node to build the app... looks like I have a problem
@fractalf exactly, this adapter (and a few of the others geared towards serverless environments) suffer a bit from SvelteKit not being tied to a specific platform, in practice if you need platform-specific code you may have a hard time...
In any case, which error were you getting when trying to integrate with the Deno version of sqlite
? Were you using a custom deps.ts
file to inject it?
@jpaquim the problem was that I cannot "install" the deno sqlite lib with npm and
import { DB } from "https://deno.land/x/sqlite/mod.ts";
obviously fails when trying to build the app with node
Any idea how to fix this?