hmtH
Denoβ€’2y agoβ€’
1 reply
hmt

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";

will throw an error
[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?
Was this page helpful?