user17427032
user17427032

Reputation:

Vue Component- > Export default ... was not found in

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

does anyone know how i can fix this issue?

Upvotes: 1

Views: 1670

Answers (2)

Narasimhan R
Narasimhan R

Reputation: 51

vue component should be register with default example:

import { ComponentA } from './ComponentA.vue' // if exported as normal
// import ComponentA from './ComponentA.vue' // if exported as default

export default { // component registoring with default
  components: {
    ComponentA
  },
  // code
}

Upvotes: 0

Decade Moon
Decade Moon

Reputation: 34286

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 { }.

Upvotes: 1

Related Questions