vscode-meteor-toolbox icon indicating copy to clipboard operation
vscode-meteor-toolbox copied to clipboard

Omit warning ts(2686) on JSX files without import React

Open fknipp opened this issue 6 months ago • 0 comments

Since React 17, the import statement

import React from "react";

is no longer necessary. To omit the warning 'React' refers to a UMD global, but the current file is a module ts(2686), the compiler option for jsx must be set to react-jsx.

My manual changes to jsconfig.json are regularly overwritten by the Meteor Toolbox.

Thanks for providing the Meteor Toolbox! Looking forward to having React support soon, as PR #11 proposes.

fknipp avatar Aug 01 '24 09:08 fknipp