Closed segrey closed 8 months ago
Seems like the problem is that the column received from typescript is not incremented, while the line is incremented:
This is working as expected.
Esbuild expects columns to be zero based while line numbers are 1 based.
Unless this is changed in esbuild, changing the column to a one-base would cause would cause error messages to be formatted incorrectly.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Command
build
Is this a regression?
The previous version in which this bug was not present was
16
Description
Since Angular 17, compilation errors have zero-based column while having one-based line. It would be more natural to have both line and column one-based.
Minimal Reproduction
src/app/app.component.html
toRun
ng serve
. The error with zero-based column (15) will appear:Previously, in Angular 16, columns in errors were one-based:
Exception or Error
No response
Your Environment
Anything else relevant?
No response