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
    alper created
    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.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08