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
I couldn't pin point the culprit, but sometimes I get these errors on development:
utils.ts:781 Uncaught Error: useNavigate() may be used only in the context of a <Router> component.
at invariant (utils.ts:781:11)
at useNavigate (hooks.tsx:158:3)
at LinkContainer2 (LinkContainer.js:48:38)
The LinkContainer component is of course under a Router, and it works in production, but lately started happening locally 🤷♀️
Any ideas?
The text was updated successfully, but these errors were encountered:
Maybe, I'm not sure, but, in the same component the crashes with react-router-bootstrap, there's a non crashing use of both Link and useNavigate directly from react-router-dom, so I don't think it's an issue on their end.
I couldn't pin point the culprit, but sometimes I get these errors on development:
The
LinkContainer
component is of course under aRouter
, and it works in production, but lately started happening locally 🤷♀️Any ideas?
The text was updated successfully, but these errors were encountered: