Skip to content

Wrong line number in stack trace in watch mode #6556

Closed
@randing89

Description

@randing89

I raised an issue previously #6108 regarding the incorrect line number in the stack trace. However, the issue still exists in watch mode with the latest version.

Step to reproduce:

  1. Clone https://github.com/randing89/line-number-bug
  2. Run npm install && npm run watch
  3. The line number in the stack trace is correct in the first run.
  4. Add few empty lines above // y is undefined in Test.js
  5. The stack trace is not pointing to the empty line.

Screenshot
image

Environment
image

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