Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(resolve): Deno now uses mostly JSR #18479

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

Ciantic
Copy link

@Ciantic Ciantic commented Oct 26, 2024

Adds support for https://jsr.io/ imports like jsr:@db/sqlite@0.12

This is related to a bug in Deno repository: denoland/deno#26492

Adds support for https://jsr.io/ imports like `jsr:@db/sqlite@0.12`
@Ciantic Ciantic changed the title Bug fix: Deno now uses mostly JSR fix(resolve): Deno now uses mostly JSR Oct 26, 2024
@Ciantic Ciantic marked this pull request as draft October 26, 2024 11:41
@Ciantic
Copy link
Author

Ciantic commented Oct 26, 2024

I'm converting this to draft, it doesn't fully solve the problem with Deno.

Next problem is:

14.40.01 [vite] Error when evaluating SSR module /src/db/db.ts: failed to import "jsr:@db/sqlite@0.12"
|- TypeError: [ERR_UNSUPPORTED_ESM_URL_SCHEME] Only file and data URLs are supported by the default ESM loader. Received protocol 'jsr'
    at async nodeImport (C:\Source\JavaScript\solid-start-test\deno-solid-test\node_modules\.deno\vite@5.4.9_1\node_modules\vite\dist\node\chunks\dep-Cyk9bIUq.js:53049:15)
    at async ssrImport (C:\Source\JavaScript\solid-start-test\deno-solid-test\node_modules\.deno\vite@5.4.9_1\node_modules\vite\dist\node\chunks\dep-Cyk9bIUq.js:52907:16)
    at undefined
    at async instantiateModule (C:\Source\JavaScript\solid-start-test\deno-solid-test\node_modules\.deno\vite@5.4.9_1\node_modules\vite\dist\node\chunks\dep-Cyk9bIUq.js:52965:5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant