79310337

Date: 2024-12-26 19:58:32
Score: 1.5
Natty:
Report link

If you are on VSCode (and your issue is not 'lowercase component name' or other issues described in the post), the issue might be that VSCode might be using different TS version than the one your project is on.

Following this fixed my issue:

  1. Open VS Code Command Palette (Ctrl + Shift + P on windows)
  2. Search for "TypeScript: Select the typescript version"
  3. Change it to your project's version:
    Image for Reference

Credits: https://github.com/vitejs/vite/issues/14011#issuecomment-1732576454

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mentor