After creating the project with npm create vite@latest
and selecting ts-react, everything seemed to work fine when I ran npm run dev
. However, in my vs code editor, I encountered the error message "Cannot find module '@vitejs/plugin-react' or its corresponding type" in the vite.config.ts file.