Skip to content

The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'.Vetur(1343) #3708

Open
@UUmaGii

Description

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ
  • I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: Win
  • Vetur version:0.37.3

Problem

i use "npm init vue@latest" init a vue project,this project has config esnext in tsconfig , but still has an alarm

The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'.Vetur(1343)

this is my code
image

The above code can run normally, it seems like that vetur can't identify this grammar, but I hope Vetur doesn't give an alarm prompt

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions