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)
No description
6 Replies
Luka
Luka2w ago
I have the same problem did you find a solution?
Md. Golam Kibria Raihan
yeah i found a solution
Luka
Luka2w ago
What worked?
Md. Golam Kibria Raihan
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 ...
Md. Golam Kibria Raihan
just overrides the vite and then npm install then dev do this and i think it will fix your problem
Want results from more Discord servers?
Add your server