Skip to content

Auto Import is not supported<script setup> #3723

Open
@Sumzibuyu

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:v0.37.3
  • VS Code version:1.93.1
  • TypeScript version:
  • Vetur output:

Several errors were encountered while automatically importing components

  1. Using <script setup> will also add components: { InputModule }

  2. If the script label is not written on the first line, an error will occur, as shown in the figure.

image

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