Skip to content

Print the source of the code in which the error occurred #124

@mizdra

Description

@mizdra

tsc prints the code that caused the compilation error to the terminal. This output is often referred to as a code frame.

$ npm run build  

> build
> tsc -b tsconfig.build.json

packages/core/src/config.ts:6:7 - error TS2322: Type 'string' is not assignable to type 'number'.

6 const a: number = 'str';
        ~


Found 1 error.

It would be nice if code-modules-kit could also support this.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions