Hello
I adding these imports to my Typescript file:
import DataTables from "datatables.net";
import "datatables.net-dt";
import "datatables.net-fixedheader";
import "datatables.net-fixedheader-dt";
import "datatables.net-fixedcolumns";
import "datatables.net-fixedcolumns-dt";
import "datatables.net-responsive";
import "datatables.net-responsive-dt";
but I get the following error in VS2022:
error TS2307: Build:Cannot find module './FixedColumns' or its corresponding type declarations.
error TS2717: Build:Subsequent property declarations must have the same type. Property 'fixedColumns' must be of type 'boolean | ConfigFixedColumns', but here has type 'boolean | ConfigFixedColumns'.
error TS2717:Build:Subsequent property declarations must have the same type. Property 'fixedColumns' must be of type 'ConfigFixedColumnsLanguage', but here has type 'ConfigFixedColumnsLanguage'.
error TS2717:Build:Subsequent property declarations must have the same type. Property 'FixedColumns' must be of type '{ new (dt: Api<any>, settings: string[] | ConfigFixedColumns | ConfigFixedColumns[]): any; version: string; defaults: ConfigFixedColumns; }', but here has type '{ new (dt: Api<any>, settings: string[] | ConfigFixedColumns | ConfigFixedColumns[]): any; version: string; defaults: ConfigFixedColumns; }'.
If I remove the
import "datatables.net-fixedcolumns-dt";
the error goes away, I'm using webpack, any advise?