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...
Author by
Natanael
Updated on January 31, 2020Comments
-
Natanael about 4 years
I'm developing an Ionic 2/Angular app and I'm trying to use form validation following this tutorial: https://angular.io/docs/ts/latest/cookbook/dynamic-form.html
But the compiler says:
Cannot find module '@angular/forms'.
Why is this modules not available? Is it deprecated?