Cannot find module '@angular/forms'

27,040

Solution 1

I ran into the same problem, my solution was:

1) add forms to the package.json:

"dependencies": {
...
"@angular/forms":   "0.2.0",
...
}

2) install using npm in the console, type within the app folder

npm install

3) run app again

npm start

Hope this helps

Solution 2

Try npm install @angular/forms --save

It will warn you that you should be using 2.0.0-rc.4 though. This may come with it's own set of upgrade challenges...

Share:
27,040
Natanael
Author by

Natanael

Updated on January 31, 2020

Comments