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

Module has no default export / <script setup> #2637

Closed
ghost opened this issue Jan 12, 2021 · 1 comment
Closed

Module has no default export / <script setup> #2637

ghost opened this issue Jan 12, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 12, 2021

<template>
  <section class="bg-gray-100">
    <Toggle />
    <ul>
      <li v-for="link in data" :key="link.href">
        {{ link.text }}
      </li>
    </ul>
  </section>
</template>

<script setup>
import data from '../data.json'
import Toggle from './components/Toggle.vue'
</script>

Error - Module App.vue has no default export.

Vetur doesn't yet support <script setup>?

@yoyo930021
Copy link
Member

Duplicate of #2296

@yoyo930021 yoyo930021 marked this as a duplicate of #2296 Jan 12, 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

1 participant