You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
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
I have searched through existing issues
I have tried restarting VS Code or running
Vetur: Restart VLS
Platform: Windows 10 Professional Edition 20H2 x64
Vetur version:v0.34.1
VS Code version:1.59.0
Node.js version:14.16.0
Problem
I used
setup sugar
in my code,then
Vetur
report error
Module xxx has no default export
Reproducible Case
HelloWorld.vue
<
script
lang
=
"ts"
setup
>
import
{
ref
}
from 'vue'
defineProps(
{
msg
:
{
type
:
String
,
required
:
true
,
const count = ref(0)
<
/
script
>
.
.
.
Home.vue
<
script
lang
=
"ts"
>
/*The following line is where error report*/
import HelloWorld from '@/components/HelloWorld.vue'
<
/
script
>
.
.
.