-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
vite/node project can't use i.e. jsr:@db/sqlite
in package.json/node-compat mode. Migrating to deno.json will break resolution
#26569
Comments
jsr:@db/sqlite
in package.json mode, moving to deno.json will break resolution
jsr:@db/sqlite
in package.json mode, moving to deno.json will break resolutionjsr:@db/sqlite
in package.json mode, moving to deno.json will break resolution
jsr:@db/sqlite
in package.json mode, moving to deno.json will break resolutionjsr:@db/sqlite
in package.json/node-compat mode, moving to deno.json will break resolution
jsr:@db/sqlite
in package.json/node-compat mode, moving to deno.json will break resolutionjsr:@db/sqlite
in package.json/node-compat mode. Migrating to deno.json will break resolution
Are you using https://github.com/denoland/deno-vite-plugin? |
Also look like there is a PR that tries to fix it too: vitejs/vite#18479 |
@bartlomieju , when i have everything in deno.json and I enable the deno() plugin it does take some effect, but the server start still prints:
|
My PR won't fix this though, it's my attempt that is just not working for some reason. I have pure repo example here: https://github.com/Ciantic/deno-pure-solid-start that has also issues... I get errors like this:
|
@Ciantic, thansk! Maybe this ticket got a bit convoluted- maybe it's easiest to leave the jsr: issue for when SolidStart runs in deno.json. |
Basic solidStart works for me, in my attempt I get solidstart working without jsr packages. As soon as I add jsr packages it fails. |
@Ciantic Oh really, you can run SolidStart without a package.json? Can we use Stackblitz for deno to repro these things like I do all the time with Node? |
@birkskyum yes, try this https://github.com/Ciantic/deno-pure-solid-start/tree/main Then click the counter button. It will error only when clicking |
Aha, didn't know about the |
I've debugged it to somewhere in the First it always calls
I don't yet understand why it tries to do such a complicated thing for SSR modules. |
Good news everyone, I got https://github.com/Ciantic/deno-solid-test/ ⬆️ I've updated the above repository, and vite's dev server works now. We have more problems in the nitro builder: deno run -A build
Task build vinxi build
vinxi v0.4.3
⚙ Building your app...
vinxi v0.4.3
(node:53524) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node.EXE --trace-warnings ...` to show where the warning was created)
ReferenceError: Deno is not defined
at file:///C:/Source/JavaScript/solid-start-test/deno-solid-test/node_modules/.deno/@jsr+std__fs@0.221.0/node_modules/@jsr/std__fs/ensure_symlink.js:7:19
at ModuleJob.run (node:internal/modules/esm/module_job:222:25) However pure deno https://github.com/Ciantic/deno-pure-solid-start/ requires probably changes to Vite. |
Version: Deno 2.0.3
Say I try to run a project, like a new solid start example
And then I port package.json over to deno.json
Now it'll break because it can't resolve any dependencies from these npm: packages that doesn't have the "npm:"
Staying in package.json doesn't allow usage of
jsr:@db/sqlite
The text was updated successfully, but these errors were encountered: