Rinkal
Rinkal

Reputation: 71

KendoUI grid component import error 'imports' must be an array of components, directives, pipes, or NgModules

when i am import import { KENDO_GRID } from '@progress/kendo-angular-grid';

this KENDO_GRID in import arrays than it is show the imports' must be an array of components, directives, pipes, or NgModules. Value is of type '[DrawerModule, Array, Array, Array, (not statically analyzable)]'.

this error

/* eslint-disable max-len */
import { Component, OnInit } from '@angular/core';
import { KENDO_BUTTON } from '@progress/kendo-angular-buttons';
import { KENDO_TEXTBOX } from '@progress/kendo-angular-inputs';
import { DrawerModule, KENDO_GRIDLAYOUT } from '@progress/kendo-angular-layout';
import { KENDO_GRID } from '@progress/kendo-angular-grid';

@Component({
  selector: 'app-dashboard',
  standalone: true,
  imports: [DrawerModule , KENDO_TEXTBOX , KENDO_BUTTON , KENDO_GRIDLAYOUT , KENDO_GRID] ,
  templateUrl: './dashboard.component.html',
  styleUrl: './dashboard.component.scss'
})
export class DashboardComponent implements {

}

and i am not able to use grid component .

Upvotes: 1

Views: 46

Answers (0)

Related Questions