Skip to content

[vue-tsc] Type annotations can only be used in TypeScript files. #3146

@Pakpoom597

Description

@Pakpoom597

Environment

  • Operating System: Darwin
  • Node Version: v20.11.0
  • Nuxt Version: -
  • CLI Version: 3.20.0
  • Nitro Version: -
  • Package Manager: [email protected]
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Version

v2.20.0

Reproduction

npm run dev

Description

In development mode only, I encountered the error shown in the picture below while implementing.
Image

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions