Add support for react-jsx
in tsconfig.json
compilerOptions
-- upgrade to TS v4.1
#1073
Labels
problem: removed issue template
OP removed the issue template without good cause
scope: dependencies
Pull requests that update a dependency file
solution: duplicate
This issue or pull request already exists
solution: workaround available
There is a workaround available for this issue
Milestone
Hi everyone
Sharing my workaround for those who are struggling to fix compiler errors when using
react-jsx
in yourtsconfig.json
.In my case, the error was:
'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.ts(2686)
.Solution: in
tsconfig.json
, changereact-jsx
topreserve
, as replied in another issue:If possible in a near future, add support for
react-jsx
.The text was updated successfully, but these errors were encountered: