when I createhe react typescript project with vite in VScode, there are always the fellowing errors in App.tsx.
Property 'div' does not exist on type 'JSX.IntrinsicElements'.
Property 'a' does not exist on type 'JSX.IntrinsicElements'.Property 'img' does not exist on type 'JSX.IntrinsicElements'.
I create the project with vite
npm create vite@latest npm install npm i -D @types/react-dom
It can run in the browser, but there are always error in the vscode. I have tryed some solutions, but it doesn't work.
There are also some error in tsconfig.json
Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy.
Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy.
Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy.
I will put the App.js and tsconfig.json in the attachement.