Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vue | Module has no default export

I'm facing an error with vue3, ts, vue cli where it says Module '"c:/Users/USER/Documents/top-secret-project/src/components/Features/Features.vue"' has no default export. when importing a component from a file I have no idea why did this specific component decide to now work.

here's Features.vue

<script lang="ts">
import Feature from "./Feature.vue";
</script>

<template>
  <Feature />
</template>
like image 258
Termin Avatar asked Sep 12 '25 15:09

Termin


1 Answers

A @Boussadjra mentioned this could happen in Visual Studio Code if Vetur extension is installed there. Insetted of Vetur if we install Volar extension in Visual Studio Code this problem gets solved.

like image 73
Partha Sarathi Ghosh Avatar answered Sep 15 '25 05:09

Partha Sarathi Ghosh