DenoDDeno
Powered by
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";
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?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

HTTPS imports in browser breaking stuff.
πŸŽ€π”Έβ„•π”Ύπ”Όπ•ƒ π”»π•†π•ƒπ•ƒπ”½π”Έβ„‚π”ΌπŸŽ€πŸ‡΅πŸ‡ΈοΏ½πŸŽ€π”Έβ„•π”Ύπ”Όπ•ƒ π”»π•†π•ƒπ•ƒπ”½π”Έβ„‚π”ΌπŸŽ€πŸ‡΅πŸ‡Έ / help
2y ago
Https in Fresh 2 with Vite?
rabbit_rabbitRrabbit_rabbit / help
5mo ago
SvelteKit, Deno 2 and https imports
JammyJJammy / help
16mo ago
Issues with Vite SSR and workspace imports in Deno β€” Need guidance on deno-vite-plugin usage
Hong MinheeHHong Minhee / help
9mo ago