We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 545d460 commit 3a98ed1Copy full SHA for 3a98ed1
packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js
@@ -218,6 +218,14 @@ function verifyTypeScriptSetup() {
218
if (appTsConfig.compilerOptions == null) {
219
appTsConfig.compilerOptions = {};
220
firstTimeSetup = true;
221
+ } else {
222
+ // This is bug fix code of https://github.com/facebook/create-react-app/issues/9868
223
+ // Bellow code release variable from non-extensible and freeze status.
224
+ appTsConfig.compilerOptions = JSON.parse(JSON.stringify(appTsConfig.compilerOptions));
225
+
226
+ // Original appTsConfig.compilerOptions status
227
+ // Object.isExtensible(appTsConfig.compilerOptions) output: false
228
+ // Object.isFrozen(appTsConfig.compilerOptions) output: true
229
}
230
231
for (const option of Object.keys(compilerOptions)) {
0 commit comments