I'm trying out Vite with React TS and using their official documentation. The app builds and runs, however viewing it in VS Code shows a whole bunch of Property 'div' does not exist on type 'JSX.IntrinsicElements'.ts(2339)
errors.
I've created a new React TS application using npx create-react-app my-app --template typescript
and am not getting this issue.
Looking at Vite documentation once again, they've got a stackblitz link that exhibits the same issue, so this means that this is not my environment that's the problem.
Am I missing something? Surely this should not be a problem for official Vite documentation? Please note however, that I'm new to React and Vite.