TypeScript/tests/baselines/reference/tsxNoTypeAnnotatedSFC.errors.txt
Donald Pipowitch e0f6ecd957
improve error message TS2307 (#27054)
* improve error message TS2307

* add updates missed from merge

* update more missed baselines

* remove incorrectly re-added test files

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-03-12 15:55:54 -07:00

14 lines
581 B
Plaintext

tests/cases/compiler/tsxNoTypeAnnotatedSFC.tsx(2,24): error TS2307: Cannot find module 'react' or its corresponding type declarations.
==== tests/cases/compiler/tsxNoTypeAnnotatedSFC.tsx (1 errors) ====
// not _actually_ making react available in this test to regression test #22948
import * as React from 'react';
~~~~~~~
!!! error TS2307: Cannot find module 'react' or its corresponding type declarations.
const Test123 = () => <div/>;
function testComponent(props) {
return <Test123 {...props}/>;
}