Closed
Description
Describe the bug
Upgrading to typescript 4.1 which apparently introduced React 17 JSX Factories causes the error Cannot assign to read only property 'jsx' of object
when using .tsx
file.
Did you try recovering your dependencies?
Yes
Environment
Environment Info:
current version of create-react-app: 4.0.0
System:
OS: macOS 10.15.7
CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
Binaries:
Node: 15.0.1 - ~/.nvm/versions/node/v15.0.1/bin/node
Yarn: 1.22.5 - /usr/local/bin/yarn
npm: 7.0.3 - ~/.nvm/versions/node/v15.0.1/bin/npm
Browsers:
Chrome: 87.0.4280.67
Edge: Not Found
Firefox: 82.0.3
Safari: 14.0
npmPackages:
react: ^17.0.1 => 17.0.1 (16.14.0)
react-dom: ^17.0.1 => 17.0.1 (16.14.0)
react-scripts: ^4.0.0 => 4.0.0
Steps to reproduce
Upgrade to typescript 4.1.2 using tsx files causes the error