Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the <script setup> syntax in SFCs #3108

Closed
dsine-de opened this issue Aug 12, 2021 · 6 comments
Closed

Support the <script setup> syntax in SFCs #3108

dsine-de opened this issue Aug 12, 2021 · 6 comments

Comments

@dsine-de
Copy link

dsine-de commented Aug 12, 2021

Feature Request

See https://v3.vuejs.org/api/sfc-script-setup.html

Currently there are no errors with the new <script setup> syntax, but variables defined in the script are displayed (e.g. component imports, computed etc.) as dimmed when they are never read in the script itself, because you don't have to return them with this syntax and there is a tooltip <variable> is declared but its value is never read. Vetur(6133).

@zs-g
Copy link

zs-g commented Aug 13, 2021

I also encountered the same problem

@Gumper-x
Copy link

I have the same problem

@Azema4ka
Copy link

I also encountered the same problem

@lupas
Copy link

lupas commented Aug 15, 2021

see also #2296

@SKFrozenCloud
Copy link

I also get Module '"mycomponent.vue"' has no default export.

@yoyo930021
Copy link
Member

Duplicate of #2296

@yoyo930021 yoyo930021 marked this as a duplicate of #2296 Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants