S
SolidJS8mo ago
미기

Internal Server Error - Make sure your app is wrapped in a <Router />

I used bunx create-solid to make the project, but when I set const navigate = useNavigate() and navigate("/somewhere"), I get the error. Maybe error on the template or error of solid router? repository: https://github.com/issac4892/EVIS-solidstart https://github.com/issac4892/EVIS-solidstart/blob/main/src/routes/personal_code.tsx https://evis.vercel.app/personal_code (input anything there and press the blue button)
GitHub
GitHub - issac4892/EVIS-solidstart
Contribute to issac4892/EVIS-solidstart development by creating an account on GitHub.
GitHub
EVIS-solidstart/src/routes/personal_code.tsx at main · issac4892/EV...
Contribute to issac4892/EVIS-solidstart development by creating an account on GitHub.
1 Reply
Luís Felippe
Luís Felippe7mo ago
It seems that you don't have the Router element in your app. In your case, I think changing "mount(() => <StartClient />, document);" to "mount(() => <Router><StartClient /></Router>, document);" in entry-client.tsx can fix it