MENU

TSconfig のエラー

現象

yarn startをすると、jsxをreact-jsxに変換してしまう

立ち上げると下記のメッセージがでて、tsconfigを修正しても、ovverrideしてしまう

The following changes are being made to your tsconfig.json file:
  - compilerOptions.jsx must be react-jsx (to support the new JSX transform in React 17)

解決策

1.tsのバーションを4.1.3にあげる 2.vscodeでバージョンを作業スペースに合わせる

command + shift + p

f:id:everydayProguramming:20201224130516p:plain

参考記事

www.reddit.com