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.

Supporting <script setup>

See original GitHub issue
  • I have searched through existing issues

Feature Request

Earlier this year Evan introduced a new RFC to improve upon the script section to support <script setup>. This RFC is already included as part of the vue@next, and vue-loader was recently updated to support it, so it’s my hope that vetur will update to support this as well, since without it intellisense doesn’t work correctly. The error I got was

File '/path/to/component/HelloWorld.vue' is not a module. Vetur(2306)
Screen Shot 2020-09-21 at 00 22 58

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:93
  • Comments:39 (6 by maintainers)

github_iconTop GitHub Comments

89reactions
CaptainYouzcommented, May 15, 2021

yo. Any news on this one ?

77reactions
yoyo930021commented, Oct 18, 2021

We plan to support it in next next version. (v0.37.0) But there is no schedule, it is a big work.

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 >
Understanding the new script setup with (defineProps ... - Netlify
The script setup feature ships with the defineProps and defineEmits APIs that make it possible for us to declare props and emits. They...
Read more >
Vue 3: Support new <script setup> without ref sugar - YouTrack
The support for script setup will be released next week with WebStorm 2021.2.1. I am sorry for the delay, but please mind, that...
Read more >
The 101 guide to Script Setup in Vue 3 - VueDose
Don't you know about Script Setup yet? Check out this short article now and learn the nicest way to define a Vue component...
Read more >
Introduction to the Script Setup Syntax - Vue Mastery
Version 3 of Vue promotes the Script Setup syntax, which was previously an experimental feature, and is now an officially supported one.
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