错误ng服务正常,但ng build --prod失败

时间:2020-10-21 17:01:18

标签: angular-cli

当我尝试运行ng serve时,它运行时没有任何错误,但是当我尝试使用'ng build --prod'创建生产版本时,它停止并显示以下错误。

错误:无法在C:/ Users / Omar Ghorbel / Desktop / storeprojectv2 / angular / node_modules / ng2-validation / dist / date / directive.d.ts中确定类DateValidator的模块!将DateValidator添加到NgModule中 修复它。

0 个答案:

没有答案