Filename is duplicated for errors created by path.buildCodeFrameError
in 7.6.3
#10531
Labels
Has PR
i: bug
i: regression
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Bug Report
Input Code
Expected behavior/code
The first line of error.message should be
/path/to/filename.js: example error
Current Behavior
The first line of error.message is
/path/to/filename.js: /path/to/filename.js: example error
Babel Configuration (.babelrc, package.json, cli command)
None / see code.
Environment
Possible Solution
Since packages/babel-core/src/transformation/index.js now prepends the error with the message maybe
path.buildCodeFrameError
should not do the same.Additional context/Screenshots
Introduced by #10511. CC @JLHwung
The text was updated successfully, but these errors were encountered: