📜  除非提供了“--jsx”标志,否则无法使用 JSX.ts(17004) - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:26.733000             🧑  作者: Mango

代码示例2
// if "jsx": "react" is being overwritten, do this if on VSCode editor:
// 1. Go to the command palette CTRL+Shift+P.
// 2. Choose "TypeScript: Select a TypeScript Version...".
// 3. Choose "Use workspace Version".

//Should be sorted, The problem is VSCode using an older version of typescript, while the typescript version shipped with the project is a later version.