Can't make Router Work
Hello
I've been trying to make react router work. Here's what I have as of now in the index.tsx file
Here's what I'm getting on the browser
11 Replies
Just dropping, that you can also use solid-start and disable SSR in the config. It will then build a SPA.
The router is setup already for you.
pnpm create solid
The Router has a root prop where need to add the children:
I'm not interested in using solid start though, just solid with some routing
that code looks like it should work
are you on "/" in your browser?
That code works for me.
Yes, I'm at this
I've also tried this
Did you look in the browsers dev console for an error?
This does work:
https://stackblitz.com/edit/solidjs-templates-yat3zp?file=src%2Findex.tsx
Maybe you need to update the depenencies?
I noticed I had downgraded my nodejs for some reason, so I think this is the actual solution, thank you