Angin
Angin

Reputation: 25

Module '"@angular/core"' has no exported member 'ReactiveFormsModule'

How can I solve this issue. It shows up in app.module.ts file in newly created angular project. enter image description here

Upvotes: 0

Views: 2394

Answers (2)

Andre Dias
Andre Dias

Reputation: 61

Sometimes, this issue happens after "npm update". Try to restart VSCode and check if the issue remains. More details at: angular: Error: NG0301

Upvotes: 0

Florian N.
Florian N.

Reputation: 236

ReactiveForms is not a module of @angular/core but of @angular/forms. So all you have to do is changing your import statement to the following:

import { ReactiveFormsModule } from '@angular/forms';

Upvotes: 2

Related Questions