Outlet issue on routes
Hey everyone, I'm struggling at the moment with setting up my routes...
I have the following in
app.tsx
:
I'm not sure if I'm setting up the routes here correctly, but I keep getting an error when it comes to no exported outlet.
In my /flags/[:id]
route i have a useParam()
and this is whats throwing the error. Is there a reason why I keep getting this error. Nothing renders.
3 Replies
Can't see what's wrong. I created stackblitz with the router 0.14.1 and works as expected -> click on test / ...
https://stackblitz.com/edit/github-grada5-waknkt?file=src%2Fapp.tsx
Can you provide a stackblitz which recreates the issue
you probably actually have
Outlet
imported from @solidjs/router
which was removed in https://github.com/solidjs/solid-router/pull/312
the replacement for that is just a mere props.children
like you would normally write a Wrapper ComponentThanks guys, I fixed it I was basically using an older version of solid-start 😄