Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Crashing randomly on dev - useNavigate() may be used only in the context of a <Router> component #307

Open
@goldylucks

Description

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /