Home > front end >  Vue Component- > Export default ... was not found in
Vue Component- > Export default ... was not found in

Time:11-17

i want to create a dashboard as a component. but i always get this error in my cmd

  • "export 'default' (imported as 'DashboardLayoutComponent') was not found in '@syncfusion/ej2-vue-layouts'

does anyone know how i can fix this issue?

CodePudding user response:

According to the docs, it appears DashboardLayoutComponent is a named export, thus you must import it as such:

import { DashboardLayoutPlugin } from '@syncfuion/ej2-vue-layouts';

Note the { }.

CodePudding user response:

vue component should be register with default example:

import ComponentA from './ComponentA.vue'

export default {
  components: {
    ComponentA
  },
  // code
}
  • Related