I have imported,
import { jqxGridComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxgrid';
in every module and I’m importing jqxGridComponent in declarations.
@NgModule({
imports: [
EventLogRoutingModule,
ChartsModule,
BsDropdownModule
],
declarations: [ EventLogComponent,jqxGridComponent]
})
It’s perfectly working in single component. But when I’m importing it in another module it’s showing me error.
Error: Type jqxGridComponent is part of the declarations of 2 modules: AppModule and EventLogModule! Please consider moving jqxGridComponent to a higher module that imports AppModule and EventLogModule
I’m not importing jqxGrid in app component because some how it’s not working.
So, I’m not able to import jqxgrid on two different modules. In one component it’s perfectly working.