SvelteKit, Deno 2 and https imports
Hello, I'm trying to use Deno 2 and SvelteKit together. When I run
deno task dev
vite launches the website however when I try to load a webpage I get an error about one of my imports. Here is the import in my database manager file (db.ts):
import { Client } from "https://deno.land/x/postgres@v0.19.3/mod.ts";
Here is the error:
(I truncated the paths to keep the message shorter.)
I tried a couple things, like adding plugins but no luck. What am I missing?
svelte.config.js
:
(removed comments to keep the message short)
vite.config.ts
:
0 Replies