Gc-dataview is not a known element

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

    • Post Options:
    • Link

    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. ("

    {{ workRequest.name }}

    ][data]="data"> ") : '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. ("

    {{ workRequest.name }}

    [ERROR ->]
  • Posted 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