Closed
Description
This is a bug report. To reproduce it, run npx create-react-app . --typescript
and change the "jsx": "preserve"
line to "jsx": "preserve",
. This is with CRA3 and I don't think this happened in CRA2 because I kept my tsconfig.json
the same while upgrading CRA from 2 to 3 and only now got the error. I think this is a CRA issue because running tsc -p .
in the directory goes through with no problem.