angular-5-data-table
angular-5-data-table copied to clipboard
Angular 5 Data table error in Production
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'.
+1 for the issue.
A temporary workaround is to compile/build without aot enabled.
ng build --prod -aot=false
Thanks alot
fixed for me updating to latest version (1.0.3)