Ends in:
0 DAY
22 HRS
30 MIN
47 SEC
Ends in:
0 D
22 H
30 M
47 S
Open Closed

<abp-password> throwing "No value accessor" error in 8.1 #7012


User avatar
0
HDaoud created
  • ABP Framework version: v8.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Exception message and full stack trace:
ERROR Error: NG01203: No value accessor for form control name: 'password'. Find more at https://angular.io/errors/NG01203
    at _throwMissingValueAccessorError (forms.mjs:3174:11)
    at setUpControl (forms.mjs:2947:13)
    at FormGroupDirective.addControl (forms.mjs:4794:9)
    at FormControlName._setUpControl (forms.mjs:5382:43)
    at FormControlName.ngOnChanges (forms.mjs:5327:18)
    at FormControlName.rememberChangeHistoryAndInvokeOnChangesHook (core.mjs:2510:14)
    at callHookInternal (core.mjs:3544:14)
    at callHook (core.mjs:3575:9)
    at callHooks (core.mjs:3526:17)
    at executeInitAndCheckHooks (core.mjs:3476:9)
  • Steps to reproduce the issue: We have a form to add employees and we use it to feed the users table (create user, assign role and password), when upgraded to 8.1 we got this error in angular.

1 Answer(s)
  • User Avatar
    0
    sinan created
    Support Team Angular Developer

    Hi, this is a bug causes from us, so i am refunding your question credit.

    This will be fixed in next patch version.

    In order to get rid of this error, you can import PasswordComponent to your module or standalone component. Can be imported from @abp/ng.theme.shared package.

    I have to mention that this component is deprecated. maybe you can think about using the new alternative. https://docs.abp.io/en/abp/latest/UI/Angular/Show-Password-Directive

    You can follow the PR here.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19