- Run
yarn
- Run
yarn typecheck
Done in 1.98s.
- Replace
index.tsx
file content with the following code:
import React from "react";
export function Foo() {
return <div />;
}
- Run
yarn typecheck
index.tsx:1:1 - error TS6133: 'React' is declared but its value is never read.
1 import React from "react";
~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error.
The first run does not throw the error unlike the second one.