📜  除非提供“--jsx”标志,否则无法使用 JSX - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:40.943000             🧑  作者: 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.