gc-dataview is not a known element

Posted by: amynam on 12 November 2019, 7:23 am EST

  • Posted 12 November 2019, 7:23 am EST

    I am getting the below error when I run my code. I have the variable 'data'. Not sure what else to check. Any suggestions?

    ERROR in : Can't bind to 'data' since it isn't a known property of 'gc-dataview'.
    1. If 'gc-dataview' is an Angular component and it has 'data' input, then verify that it is part of this module.
    2. If 'gc-dataview' 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. ("
    <h2>{{ workRequest.name }}</h2>
    </div>
    <gc-dataview [ERROR ->][data]="data"> </gc-dataview>
    <mat-drawer-container backdrop="true ">
    <mat-drawer-content>
    ")
    : 'gc-dataview' is not a known element:
    1. If 'gc-dataview' is an Angular component, then verify that it is part of this module.
    2. If 'gc-dataview' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
    <h2>{{ workRequest.name }}</h2>
    </div>
    [ERROR ->]<gc-dataview [data]="data"> </gc-dataview>
    <mat-drawer-container backdrop="true ">
    <mat-drawer-cont")
  • Marked as Answer

    Replied 12 November 2019, 7:35 pm EST

    Hi Abhishek,

    From the error, it seems that DataViewModule module is not imported in your application. Please make sure that 'DataViewModule' is correctly imported into your angular module:
    import { DataViewModule } from '@grapecity/dataviews.angular';

    @NgModule({
    imports: [DataViewModule, BrowserModule],
    declarations: [AppComponent],
    })
    export class AppModule {}

    Please refer to the following doc for more info: https://www.grapecity.com/dataviewsjs/docs/dev-guide/quick-start/angular

    Regards
    Sharad
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels