【发布时间】:2019-06-12 19:40:12
【问题描述】:
我有一个按以下方式构建的 monorepo 项目
/web
/native
/tsconfig.json
tsconfig.json
我的/native/tsconfig.json 看起来像这样
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "react-native"
}
}
但由于某种原因,我的 .tsx 带有一些 jsx 的文件返回以下错误
[ts] 除非提供了“--jsx”标志,否则无法使用 JSX。 [17004]
当我使用 cli tsc 进行类型检查时,我没有收到这些错误。
【问题讨论】:
标签: reactjs typescript visual-studio-code jsx