Skip to content

Commit cde71cb

Browse files
committed
Fixed an error starting the project
The following occurred on `yarn start`: TypeError: Cannot assign to read only property 'jsx' of object '#<Object>' See: facebook/create-react-app#10110 (comment)
1 parent 9fdcd6e commit cde71cb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
.env.development.local
1818
.env.test.local
1919
.env.production.local
20-
2120
npm-debug.log*
2221
yarn-debug.log*
2322
yarn-error.log*
23+
.eslintcache

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@types/react-dom": "^16.9.8",
1313
"react": "^17.0.1",
1414
"react-dom": "^17.0.1",
15-
"react-scripts": "4.0.0",
15+
"react-scripts": "^4.0.0",
1616
"typescript": "^4.0.3",
1717
"web-vitals": "^0.2.4"
1818
},

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"resolveJsonModule": true,
1919
"isolatedModules": true,
2020
"noEmit": true,
21-
"jsx": "react"
21+
"jsx": "react-jsx"
2222
},
2323
"include": [
2424
"src"

0 commit comments

Comments
 (0)