Skip to content

Chrome Debugger/source maps are inaccurate #3911

@oriooctopus

Description

@oriooctopus

🐛 Bug Report

When using the chrome debugger, it maps to a much earlier line

Have you read the Contributing Guidelines on issues?

Yes

To Reproduce

  1. Swizzle DocSidebar (it could be any component, and I believe there would still be this error)
  2. Add a debugger statement (Mine was on line 202, right before the return)

You would expect it to highlight here:
Screen Shot 2020-12-12 at 10 23 27 PM

But instead if starts here:
Screen Shot 2020-12-12 at 10 19 05 PM

Your Environment

I ran npx @docusaurus/init@latest init my-website classic on the newest version, although I don't think it's due to any recent change... I've had this issue for at least 6 months

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions