angular-5-data-table icon indicating copy to clipboard operation
angular-5-data-table copied to clipboard

Angular 5 Data table error in Production

Open dexterhussain opened this issue 6 years ago • 3 comments

Dear All,

I am developing an application using angular 5 . In ng serve it gives no issues, but as soon as I run command ng build --prod it gives this error I am not using any pagination but still it is giving error in node_module ERROR in node_modules\angular5-data-table\angular5-data-table.d.ts.DataTablePagination.html(3,11): : Argument of type 'number | "0"' is not assignable to parameter of type '(substring: string, ...args: any[]) => string'. Type 'number' is not assignable to type '(substring: string, ...args: any[]) => string'.

dexterhussain avatar May 14 '18 11:05 dexterhussain

+1 for the issue.

A temporary workaround is to compile/build without aot enabled.

ng build --prod -aot=false

maxrandolph avatar May 15 '18 13:05 maxrandolph

Thanks alot

muzzammilhussain avatar May 16 '18 04:05 muzzammilhussain

fixed for me updating to latest version (1.0.3)

irega avatar May 25 '20 11:05 irega