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