We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Error showing when build the project

Angular 7 project using syncfusion component. Run the project working fine. but con't get the product build (ng build --prod). show the below error. 

 ERROR in : Can't bind to 'dataSource' since it isn't a known property of 'ejs-grid'.
1. If 'ejs-grid' is an Angular component and it has 'dataSource' input, then verify that it is part of this module.
2. If 'ejs-grid' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("<ejs-grid [ERROR ->][dataSource]='data' [allowPaging]="true" [allowSorting]="true">
        <e-columns>
            <e-")
: Can't bind to 'allowPaging' since it isn't a known property of 'ejs-grid'.
1. If 'ejs-grid' is an Angular component and it has 'allowPaging' input, then verify that it is part of this module.
2. If 'ejs-grid' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("<ejs-grid [dataSource]='data' [ERROR ->][allowPaging]="true" [allowSorting]="true">
        <e-columns>
            <e-column field='FNames")



1 Reply

TS Thavasianand Sankaranarayanan Syncfusion Team January 2, 2019 05:57 AM UTC

Hi Basheer, 

Greetings from Syncfusion. 

Query : Run the project working fine. but can't get the product build 
 
We have analyzed your query and we suspect that the injection of grid modules in the app.module.ts is the cause of this issue. So we suggest to inject grid modules in your project to overcome the reported issue. Please refer to the below documentation for your reference, 

                                https://ej2.syncfusion.com/angular/documentation/grid/getting-started/#module-injection  
 
Please get back to us for further assistance. 
 
Regards, 
Thavasianand S. 


Loader.
Live Chat Icon For mobile
Up arrow icon