<h3 dir="auto"><strong>Create a react project with Typescript and start to report errors as soon as it runs.</strong></h3>
<h3 dir="auto">Errors</h3>
<p dir="auto"><strong>D:\XXXXXX\node_modules\react-scripts\scripts\utils\verifyTypeScriptSetup.js:239</strong><br>
appTsConfig.compilerOptions[option] = value;</p>
<p dir="auto">TypeError: Cannot assign to read only property 'jsx' of object '#'<br>
at verifyTypeScriptSetup (D:\Code\react-demo-ts\node_modules\react-scripts\scripts\utils\verifyTypeScriptSetup.js:239:43)<br>
at Object. (D:\Code\react-demo-ts\node_modules\react-scripts\scripts\start.js:31:1)<br>
at Module._compile (internal/modules/cjs/loader.js:1063:30)<br>
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)<br>
at Module.load (internal/modules/cjs/loader.js:928:32)<br>
at Function.Module._load (internal/modules/cjs/loader.js:769:14)<br>
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)<br>
at internal/main/run_main_module.js:17:47<br>
error Command failed with exit code 1.</p><p dir="auto"></p><p></p>
<h3 dir="auto">Describe the bug</h3>
<p dir="auto">When creating a react-typescript app using</p>
<p dir="auto"><code class="notranslate">npx create-react-app . --template typescript </code></p>
<p dir="auto">The error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="yarn run v1.22.5
$ react-scripts start
/home/aditya/all/yt/twitter/node_modules/react-scripts/scripts/utils/verifyTypeScriptSetup.js:239
      appTsConfig.compilerOptions[option] = value;
                                          ^

TypeError: Cannot assign to read only property 'jsx' of object '#&lt;Object&gt;'
    at verifyTypeScriptSetup (/home/aditya/all/yt/twitter/node_modules/react-scripts/scripts/utils/verifyTypeScriptSetup.js:239:43)
    at Object.&lt;anonymous&gt; (/home/aditya/all/yt/twitter/node_modules/react-scripts/scripts/start.js:31:1)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command."><pre class="notranslate"><code class="notranslate">yarn run v1.22.5
$ react-scripts start
/home/aditya/all/yt/twitter/node_modules/react-scripts/scripts/utils/verifyTypeScriptSetup.js:239
      appTsConfig.compilerOptions[option] = value;
                                          ^

TypeError: Cannot assign to read only property 'jsx' of object '#&lt;Object&gt;'
    at verifyTypeScriptSetup (/home/aditya/all/yt/twitter/node_modules/react-scripts/scripts/utils/verifyTypeScriptSetup.js:239:43)
    at Object.&lt;anonymous&gt; (/home/aditya/all/yt/twitter/node_modules/react-scripts/scripts/start.js:31:1)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
</code></pre></div>