NG01050 Angular Origin: On your device Last updated 15 Oct 2026

Angular: NG01050: formControlName must be used with a parent formGroup directive

formControlName is used outside any [formGroup] — the control has no form to belong to.

Exact message you may see formControlName must be used with a parent formGroup directiveformGroup expects a FormGroup instance. Please pass one informGroupName must be used with a parent formGroup directive
Seen on: Angular TypeScript

Meaning

Reactive form controls attach to a parent FormGroup. The [formGroup] directive must wrap the inputs in the same template (it does not cross component boundaries), and ReactiveFormsModule must be imported. For a standalone control use [formControl] instead.

Common causes

  • Missing [formGroup]="form" on the surrounding <form> or element
  • Input placed in a child component whose template has no [formGroup]
  • ReactiveFormsModule not imported (so [formGroup] is silently ignored)
  • Using formControlName where [formControl] is meant
  • form is undefined when the template renders

⚡ Quick fix

  1. Wrap the inputs in <form [formGroup]="form">
  2. Import ReactiveFormsModule
  3. Use [formControl]="ctrl" for a stand-alone control

Detailed fix by platform

Angular

  1. <form [formGroup]="form"><input formControlName="name"></form> and imports: [ReactiveFormsModule]

Code examples

Standalone control vs grouped control

html
<!-- grouped -->
<form [formGroup]="form"><input formControlName="name"></form>

<!-- stand-alone -->
<input [formControl]="search">

How to diagnose

  1. Parent — Is [formGroup] in the same template?
  2. Module — ReactiveFormsModule imported?
  3. Child — Is the input inside a child component?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

Cannot find control with name — Angular: Error: Cannot find control with name: 'email' (reactive forms) (Angular)Cannot find control w…mat-form-field must contain a MatFormFieldControl — Angular Material: Error: mat-form-field must contain a MatFormFieldControl (Angular)mat-form-field must c…NG01203 — Angular: NG01203: No value accessor for form control with name: 'x' (ControlValueAccessor missing) (Angular)NG01203NG01352 — Angular: NG01352: If ngModel is used within a form tag, either the name attribute must be set or the form control must be defined as 'standalone' (Angular)NG01352NG8002 — Angular: NG8002: Can't bind to 'ngModel' since it isn't a known property of 'input' (Angular)NG8002NG8003 — Angular: NG8003: No directive found with exportAs 'ngForm' (template reference variable) (Angular)NG8003NG01050

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.