【发布时间】:2021-07-02 05:25:23
【问题描述】:
我在我的项目(Angular 11)中安装了一个包“ngx-custom-validator”,它工作正常。
在我将项目升级到 Angular 12 后,现在我面临“ngx-custom-validator”的问题
以下错误:
_Namespace '"***/node_modules/ngx-custom-validators/node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDeclaration'.
与
4257 static ɵmod: ɵngcc0.ɵɵNgModuleDeclaration<ɵInternalFormsSharedModule, [typeof ɵNgNoValidate, typeof NgSelectOption, typeof ɵNgSelectMultipleOption, typeof DefaultValueAccessor,typeof NumberValueAccessor, typeof RangeValueAccessor, typeof CheckboxControlValueAccessor, typeof SelectControlValueAccessor, typeof SelectMultipleControlValueAccessor, typeof RadioControlValueAccessor, typeof NgControlStatus, typeof NgControlStatusGroup, typeof RequiredValidator, typeof MinLengthValidator, typeof MaxLengthValidator, typeof PatternValidator, typeof CheckboxRequiredValidator, typeof EmailValidator], never, [typeof ɵNgNoValidate, typeof NgSelectOption, typeof ɵNgSelectMultipleOption, typeof DefaultValueAccessor, typeof NumberValueAccessor, typeof RangeValueAccessor, typeof CheckboxControlValueAccessor, typeof SelectControlValueAccessor, typeof SelectMultipleControlValueAccessor, typeof RadioControlValueAccessor, typeof NgControlStatus, typeof NgControlStatusGroup, typeof RequiredValidator, typeof MinLengthValidator, typeof MaxLengthValidator, typeof PatternValidator, typeof CheckboxRequiredValidator, typeofEmailValidator]>;
我认为最近使用这个包的开发者也有这个问题,如果有解决方案请分享。
提前致谢
【问题讨论】: