我正在尝试为 prod 构建一个角度应用程序并获得以下错误。当我尝试 ng-serve 时,一切正常,但在构建时出现问题。
我理解这个问题,它是用于传递数字而不是字符串,但我没有得到它在我的代码中发生的位置。要检查的行号。
ERROR in /home/ankita/Documents/admin-panel/ecommerce-admin/src/$$_gendir/app/customer-review/customer-review.component.ngfactory.ts (830,237): Argument of type 'number' is not assignable to parameter of type 'string[]'.
ERROR in /home/ankita/Documents/admin-panel/ecommerce-admin/src/$$_gendir/app/customer-review/customer-review.component.ngfactory.ts (1435,237): Argument of type 'number' is not assignable to parameter of type 'string[]'.
ERROR in /home/ankita/Documents/admin-panel/ecommerce-admin/src/$$_gendir/app/customer-review/customer-review.component.ngfactory.ts (2024,237): Argument of type 'number' is not assignable to parameter of type 'string[]'.
ERROR in /home/ankita/Documents/admin-panel/ecommerce-admin/src/$$_gendir/app/customer-review/customer-review.component.ngfactory.ts (2637,237): Argument of type 'number' is not assignable to parameter of type 'string[]'.```