Skip to content

Issue with Nextjs: window.__REACT_CONTEXT_DEVTOOL_GLOBAL_HOOK is missing #14

@Shawnxkwang

Description

@Shawnxkwang

Describe the bug
I use auto mode, and error in debugContextDevtool shows

index.js?36f8:41 Uncaught TypeError: Cannot read property 'helpers' of undefined
    at debugContextDevtool (index.js?36f8:41)

To Reproduce
add the following code to your _app.js:

const container = document.getElementById("__next");
debugContextDevtool(container, {});

You'll see the error in console

Desktop (please complete the following information):

  • OS: Linux
  • Browser Chrome
  • Version 80.0.3987.163 (Official Build) (64-bit)

Additional context
Sorry I can't provide any more details since it's company code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions