Skip to content

[FR] More accurate error message for named exports in <script setup> #2528

@wenfangdu

Description

@wenfangdu

Currently, it's "Modifiers cannot appear here." which is very general and gives the user the impression that it's not a Vue related error, I suggest changing it to something like "Named exports can't be used in <script setup>.", which is more accurate.

image

Metadata

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