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

admin2025-04-15  3

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: './dashboardponent.html',
  styleUrl: './dashboardponent.scss'
})
export class DashboardComponent implements {

}

and i am not able to use grid component .

转载请注明原文地址:http://www.anycun.com/QandA/1744728611a86795.html