【发布时间】:2021-04-27 15:09:59
【问题描述】:
我在使用 typescript 的 React 应用程序中遇到以下错误:
Cannot use JSX unless the '--jsx' flag is provided
【问题讨论】:
标签: reactjs typescript
我在使用 typescript 的 React 应用程序中遇到以下错误:
Cannot use JSX unless the '--jsx' flag is provided
【问题讨论】:
标签: reactjs typescript
更新您的tsconfig.json 文件:
"compilerOptions": {
...
"jsx": "react"
},
【讨论】: