Why am I having this issue while using data table

Why am I having this issue while using data table

xlrxlr Posts: 2Questions: 2Answers: 0

Error: node_modules/angular-datatables/src/angular-datatables.directive.d.ts:31:25 - error TS2503: Cannot find namespace 'DataTables'.

31 dtInstance: Promise<DataTables.Api>;
~~~~~~~~~~

Error: node_modules/angular-datatables/src/models/settings.d.ts:3:38 - error TS2503: Cannot find namespace 'DataTables'.

3 export interface ADTSettings extends DataTables.Settings {
~~~~~~~~~~

Error: node_modules/angular-datatables/src/models/settings.d.ts:6:37 - error TS2503: Cannot find namespace 'DataTables'.

6 export interface ADTColumns extends DataTables.ColumnSettings {
~~~~~~~~~~

Answers

  • kthorngrenkthorngren Posts: 21,344Questions: 26Answers: 4,954

    Looks like you are using Angular Datatables which is a third party developed library that uses Datatables. This is not provided by the developers of Datatables. You will need to use their support mechanisms. Maybe this SO thread will help.

    Kevin

Sign In or Register to comment.