T
TanStack•3y ago
afraid-scarlet

Hey can someone help e with how to use this router

I am trying to use this router but I run into some problems. Link dont have safe type and router provider returning some weird error in the first photo I define my router and in the sec photo I try to use it for some reason my router.Link have a type safe and Link not
No description
No description
No description
No description
3 Replies
fascinating-indigo
fascinating-indigo•3y ago
Try registering your router like this ```tsx declare module '@tanstack/react-router' { Interface RegisterRouter { router : typeof router } }
afraid-scarlet
afraid-scarletOP•3y ago
thank you so much its working
fascinating-indigo
fascinating-indigo•3y ago
Great, happy to help 🙂

Did you find this page helpful?