Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

894
Views
The requested module ... does not provide an export named

I'm trying to import a default export from a module in Vue 3 and I'm getting the following error -

Uncaught SyntaxError: The requested module '/src/views/FlashcardView.vue?t=1648376545088' does not provide an export named 'FlashcardView'

I'm trying to import this component -

*** Flashcardview.vue ***

<script lang="ts">
  export default {
    name: "FlashcardView",
    methods: {
      flipCard() {
        document.getElementById("flashcard-container").style.backgroundColor = "red";
      }
    }
  }
</script>

into my root component -

<script lang="ts">
  import { RouterView } from "vue-router";
  import FlashcardView  from "./views/FlashcardView.vue";
  export default {
    name: "App",
    components: {
      Router: RouterView,
      FlashcardApp: FlashcardView
    }
  }
</script>

According to this page - Uncaught SyntaxError: The requested module './add.js' does not provide an export named 'add' I'm doing the right thing by importing my default export without the curly braces.

So... What gives?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!