CianticC
Deno14mo ago
Ciantic

Vinxi project such as solid-start doesn't work with Deno 2.0

Here is a repo: https://github.com/Ciantic/deno-solid-test

This most likely because Vinxi runs
node.exe
behind the scenes instead of
deno.exe
.

It's notable that bun also has same error, but it can be fixed by using a flag
--bun
that fakes bun.exe as node.exe.

Maybe deno needs similar functionality as bun.

11.50.18 [vite] Error when evaluating SSR module C:/Source/JavaScript/solid-start-test/deno-solid-test/src/routes/index.tsx?pick=default&pick=$css: failed to import "jsr:@db/sqlite@0.12"
|- Error: Cannot find module 'jsr:@db/sqlite@0.12' imported from 'C:/Source/JavaScript/solid-start-test/deno-solid-test/src/db/db.ts'
    at nodeImport (C:\Source\JavaScript\solid-start-test\deno-solid-test\node_modules\.deno\vite@5.4.9\node_modules\vite\dist\node\chunks\dep-Cyk9bIUq.js:53036:19)        
    at ssrImport (C:\Source\JavaScript\solid-start-test\deno-solid-test\node_modules\.deno\vite@5.4.9\node_modules\vite\dist\node\chunks\dep-Cyk9bIUq.js:52903:22)
    at undefined
    at async instantiateModule (C:\Source\JavaScript\solid-start-test\deno-solid-test\node_modules\.deno\vite@5.4.9\node_modules\vite\dist\node\chunks\dep-Cyk9bIUq.js:52961:5)
GitHub
Contribute to Ciantic/deno-solid-test development by creating an account on GitHub.
Was this page helpful?