Skip to content

Persistent issue with __next_navigation_guard_token #53

@Nefertisu

Description

@Nefertisu

Hello!

First of all, thank you for creating this library — as far as I can see, there are currently no proper alternatives to it.

Unfortunately, according to our logs, users constantly encounter the following error:

Cannot read properties of null (reading '__next_navigation_guard_token')
After a long investigation, I wasn’t able to find the root cause of this problem.

Would it be possible to add a fix or at least improve the error message, so that when __next_navigation_guard_token is accessed from an undefined value, the library could provide a more descriptive message —

something like:

“NavigationGuardProvider is not initialized properly”

or any other meaningful explanation that would help identify configuration issues?

We are using Next.js 15.5.7 (App Router).

Thanks in advance! 🙏

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