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?
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
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...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With