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




3 Replies
fascinating-indigo•3y ago
Try registering your router like this
```tsx
declare module '@tanstack/react-router' {
Interface RegisterRouter {
router : typeof router
}
}
afraid-scarletOP•3y ago
thank you so much its working
fascinating-indigo•3y ago
Great, happy to help 🙂