Can't start solid start project
this is my dependencies. When try npm run dev and access the localhost:3000
this throws this
11:05:49 PM [vite] Error when evaluating SSR module $vinxi/handler/ssr:
|- Error: Client-only API called on the server side. Run client-only code in onMount, or conditionally run client-only component with <Show>.
at Module.notSup (file:///E:/SolidStartjs/firstTime%20SolidStart/solid-first/node_modules/solid-js/web/dist/server.js:1136:9)
at eval (eval at instantiateModule (file:///E:/SolidStartjs/firstTime%20SolidStart/solid-first/node_modules/@solidjs/start/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52963:24), <anonymous>:1470:49)
at async instantiateModule (file:///E:/SolidStartjs/firstTime%20SolidStart/solid-first/node_modules/@solidjs/start/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52972:5)
6 Replies
I have the same problem did you find a solution?
yeah i found a solution
What worked?
https://github.com/solidjs/solid-start/issues/1679
you can see this issue
GitHub
[Bug?]: Error: Client-only API called on the server side. When usin...
Duplicates I have searched the existing issues Latest version I have tested the latest version Current behavior 😯 On running npm run dev for new solid start project (using basic template) throws a ...
just overrides the vite and then npm install then dev
do this and i think it will fix your problem