[Vuejs]-Error: The requested module 'vue' does not provide an export named 'default'

0👍

Have a look at this question first:
Vue 'export default' vs 'new Vue'

I think you try to import your "component" so you need to provide:

  export default {
       components: {
      myComponent
  }
  data () {
  return {}
 }
 ...

}

Your Syntax is for the root component and can not be used like

<my-component></my-component>

in the parent component

Leave a comment