Uncaught SyntaxError: The requested module ‘http://localhost:5173/node_m

Forums Vue 3 Migration Errors Uncaught SyntaxError: The requested module ‘http://localhost:5173/node_m

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #122253
    albanaavdiu
    Participant

    Uncaught SyntaxError: The requested module ‘http://localhost:5173/node_modules/.vite/deps/vue.js?v=3c23e01b’ doesn’t provide an export named: ‘default’
    import { createRouter, createWebHistory, createWebHashHistory } from ‘vue-router’

    #122262
    albanaavdiu
    Participant

    To resolve the issue, it’s crucial to pay attention to how the module is being imported. Specifically, the error “doesn’t provide an export named ‘default'” indicates that the module you’re trying to import doesn’t have a default export

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.