Why am I having this issue while using data table
Why am I having this issue while using data table
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
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