Reputation: 25
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
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
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