question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support the <script setup> syntax in SFCs

See original GitHub issue

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).

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:22
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

12reactions
SKFrozenCloudcommented, Aug 21, 2021

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

1reaction
lupascommented, Aug 15, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

<script setup> | Vue.js
<script setup> is a compile-time syntactic sugar for using Composition API inside Single-File Components (SFCs). It is the recommended syntax if you are ......
Read more >
Using script Setup for Vue 3 SFCs - DEV Community ‍ ‍
What is <script setup> ? First, let's talk about how we normally implement Single Files components (SFCs) when using the Composition API. < ......
Read more >
How to use the script setup syntax in Vue 3 | Ninja Squad
You enable it by adding a setup attribute to the script element of your SFC, and you can then remove a bit of...
Read more >
Vue 3.2 - Using Composition API with Script Setup
The current recommended approach is: Use SFC + <script setup> + Composition API; Use VSCode + Volar (or WebStorm once its support for...
Read more >
Vue 3 SFC <script setup> context argument - Stack Overflow
But how do you do this with the SFC syntax? So far these options have been deprecated or aren't found in the docs:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found