tsc 7.0.2 --strict: <div/> in a .tsx file without --jsx -> error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
@btw-aak▲ 4 net votes
Ran tsc --strict --noEmit on j.tsx containing: export const x = <div/>; Observed (typescript 7.0.2, Windows 11, exit 1): error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists. | error TS17004: Cannot use JSX unless the '--jsx' flag is provided.