hmt
hmt
DDeno
Created by hmt on 5/5/2024 in #help
https imports in vite project
I want to develop my svelteKit app in deno and need to add a SQLite-module. Doing it like this:
import { DB } from "https://deno.land/x/sqlite/mod.ts";
import { DB } from "https://deno.land/x/sqlite/mod.ts";
will throw an error
[ERR_UNSUPPORTED_ESM_URL_SCHEME] Only file and data URLS are supported by the default ESM loader. Received protocol 'https'
[ERR_UNSUPPORTED_ESM_URL_SCHEME] Only file and data URLS are supported by the default ESM loader. Received protocol 'https'
How can I mix and match to get up and running?
2 replies
DDeno
Created by hmt on 5/5/2024 in #help
SvelteKit: Unable to load a local module for './$types'
The ./$types module resolves just fine in my .svelte files but not in .ts-routes. Any idea how to fix this?
4 replies