So I am trying to create reactive forms but terminal throws me an error just can not understand what is wrong here. P.S in app.module.ts I already imported ReactiveFormsModule
here is the code
<form [formGroup]="reciepeForm" (submit)="onSubmit()">
<div class="row">
<div class="col-12">
<div class="btn btn-success" type="submit">Save</div>
<div class="btn btn-danger" type="button">Cancel</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group">
<label for="name">Name</label>
<input type="text" class="form-control" id='imagePath' formControlName="name">
</div>
</div>
</div>
</form>
here is code from .ts file
reciepeForm: FormGroup;
this.reciepeForm = new FormGroup({
'name': new FormControl(),
'imagePath': new FormControl(),
'description': new FormControl(),
})