You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug?]: Client-only API called on the server side when using deno.json #1990
When using deno.json in place of package.json & tsconfig.json
app throws
[vite] (ssr) Error when evaluating SSR module $vinxi/handler/ssr: Client-only API called on the server side. Run client-only code in onMount, or conditionally run client-only component with <Show>.
at notSup (/solidstart-deno-bug-repro/node_modules/.deno/solid-js@1.9.9/node_modules/solid-js/web/dist/server.js:755:9)
at /solidstart-deno-bug-repro/node_modules/.deno/@solidjs+router@0.15.3/node_modules/@solidjs/router/dist/index.js:1637:27
Expected behavior 🤔
No errors should be thrown when deno.json is a 1:1 representation of package.json & tsconfig.json
Steps to reproduce 🕹
Steps:
Run deno init --npm solid@latest and select any of the templates
Create a deno.json with import map representing 1:1 dependencies from package.json & compilerOptions copied over from tsconfig.json
Considering deno runtime is supported with Solid & install instructions are in the docs I would expect all of deno's toolkit to be supported
I wanted to use deno linter & formatter & didn't want to keep both package.json and deno.json
Activity
khwalkowicz commentedon Oct 18, 2025
This continues a discussion from #1679 (comment)
RobertWadeSteele commentedon Jan 25, 2026
I'm seeing this issue as well. Hopefully this issue will gain some attention soon.
brenelz commentedon Jul 17, 2026
Can you try with solid start v2? This version doesn't use vinxi and will probably solve your problem
birkskyum commentedon Jul 25, 2026
Closed as a SolidStart v1 bug. If you experience anything like it with SolidStart v2, feel free to reopen with a fresh reproduction.