Skip to content

appendTsSuffixTo, path in error messages #1331

Closed
@SimmeNilsson

Description

@SimmeNilsson

Expected Behaviour

Error logs referencing actual file on file system (not file with .ts appended).

Actual Behaviour

appendTsSuffixTo makes paths in error message point to non-existent file.

ERROR in C:\DeveloperArea\Troubleshooting\vue_ts\MyComponent.vue.ts
17:12-18
[tsl] ERROR in C:\DeveloperArea\Troubleshooting\vue_ts\MyComponent.vue.ts(17,13)
TS2552: Cannot find name 'onCick'. Did you mean 'onClick'?

I understand that it is supposed to add ts-suffix internally.
But including the suffix in the error output means one can't click them in, for example VS Code, and end up at the place of the error.

Steps to Reproduce the Problem

Download repo
yarn
yarn build

See file path in build error

Location of a Minimal Repository that Demonstrates the Issue.

https://github.com/SimmeNilsson/vue_ts

Additional info

Line numbers would still be off.
But added workaround from vuejs/vue-loader#1778 to get correct ones.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions