You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you try to use navigate to jump to one of these locations: navigate("/personnel/1/acquisition/appelsoffres")
Expected Behavior
should redirect to the mentioned location, but no, (this works perfectly with non nested routes)
Actual Behavior
you get the follwing error:
TypeError: Cannot read properties of undefined (reading 'pathname')
at resolveTo (router.ts:549:1)
at hooks.tsx:252:1
at mountMemo (react-dom.development.js:15846:1)
at Object.useMemo (react-dom.development.js:16219:1)
at useMemo (react.development.js:1532:1)
at useResolvedPath (hooks.tsx:252:1)
at useHref (hooks.tsx:40:1)
at LinkWithRef (index.tsx:267:1)
at renderWithHooks (react-dom.development.js:14985:1)
at updateForwardRef (react-dom.development.js:17044:1)``
The text was updated successfully, but these errors were encountered:
What version of React Router are you using?
V6
Steps to Reproduce
you have some nested routes:
you try to use navigate to jump to one of these locations:
navigate("/personnel/1/acquisition/appelsoffres")
Expected Behavior
should redirect to the mentioned location, but no, (this works perfectly with non nested routes)
Actual Behavior
you get the follwing error:
The text was updated successfully, but these errors were encountered: