Skip to content

Commit

Permalink
fix: error using jsx
Browse files Browse the repository at this point in the history
Message Error: Cannot use JSX unless '--jsx' flag is provided

Issue: facebook/create-react-app#9868
  • Loading branch information
wijloc committed Nov 25, 2020
1 parent 6a6c045 commit a5c7b98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"@types/react-dom": "^16.9.8",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-scripts": "4.0.1",
"typescript": "^4.0.3",
"react-scripts": "4.0.0-next.98",
"typescript": "^4.1.0",
"web-vitals": "^0.2.4"
},
"scripts": {
Expand Down
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
"jsx": "react"
},
"include": [
"src"
]
}
}

0 comments on commit a5c7b98

Please sign in to comment.