Last 12 weeks · 0 commits
2 of 6 standards met
Due to the sveltekit-adapter-deno library, vite is running the sveltekit server with deno. However, we do not seem to be able to make imports from deno.land. For example, zod: https://deno.land/x/zod@v3.22.4/mod.ts Steps to reproduce I have created a repo which demonstrates this issue. I have changed the templated 'about' route to a +server.ts which tries and fails to load zod from deno.land. The .devcontainer folder is set up so it can be run in a codespace: https://github.com/WidgetKing/deno-sveltekit-template-denoland-load-error 1. Run 2. Open the local host page. 3. On the menu, navigate to About 4. Receive error Cannot find module 'https://deno.land/x/zod@v3.22.4/mod.ts' imported from '/workspaces/deno-sveltekit-minimal/deps.ts' sveltekit-adapter-deno has 'deps' configuration. I tried playing around with that but have still been yet to get imports to work.
Repository: denoland/deno-sveltekit-template. Description: A starter template for running SvelteKit on Deno Deploy Stars: 28, Forks: 2. Primary language: JavaScript. Languages: JavaScript (64%), HTML (17.5%), TypeScript (11.6%), Svelte (6.9%). License: MIT. Open PRs: 0, open issues: 3. Last activity: 2y ago. Community health: 50%. Top contributors: kwhinnery.