No auto complete in vs code
Hi. I have set up my routes according to the doc. But when I use
useNavigate and navigate(), it doesn't show the auto complete suggestions of the path names. Am I missing something? Thanks.
1 Reply
ugly-tanOP•3w ago
oh it seems I missed this:
// Register the router instance for type safety
declare module '@tanstack/react-router' {
interface Register {
router: typeof router
}
}
it works now