BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
I want to build a reusable custom component which wrap ejs-grid control ,but when I doing that I got a Vue warning "Component "e-column" has already been registered in target app." and the grid does not show anything
```Data-Grid.vue
```
but when I use it like:
```
About.vue
```
Hi Ayman Shokry,
Thanks for contacting Syncfusion support.
To validate the reported scenario could you please share some more details which will be helpful for us to provide a better solution as early as possible.
Regards,
Pavithra S
1 - Version 21.1.38
2 - It gives no errors but warning in the console " e-columns has already been registered in target app." and " e-column has already been registered in target app."
Hi Ayman Shokry,
Thanks for sharing the details.
From the sample, we could see that you haven’t imported the “DataGrid” component while using the reusable Grid which is the cause of the reported behavior. So, we suggest importing as in the below code to achieve your requirement.
<template> <div> <h2>About {{ response }}</h2> . . . <data-grid :dataSource="data" :columns="columns"></data-grid>
<button @click="handleClick" class="btn">Press API</button> </div> </template>
<script setup lang="ts"> import DataGrid from '../components/Base/DataGrid.vue';
. . . </script>
|
|
Please get back to us if you need further assistance on this.
Regards,
Pavithra S
If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.
Hello , thanks for your reply but I forgot to inform you that I am using Nuxt 3 which has auto-import feature and therefore I don't need to expilicity import the DataGrid as well as it gives me an error:
Hi Ayman Shokry,
While importing the DataGrid component using the below code, the Grid is rendered properly in your sample.
import DataGrid from '../components/Base/DataGrid.vue';
Please refer to the previously attached snap for more information. If you are still facing the issue, could you please ensure that you could render normal HTML components like button using this reusable component without the EJ2 Grid on your side?