The TL;DR Version
Let me open by briefly summarize my points of why you should upgrade today. I will cover each point in more detail low...
For further actions, you may consider blocking this person and/or reporting abuse
I just created a new project using 9.0.0-rc.7. It is complaining that it 'Can't bind to 'FormGroup' since it isn't a known property of 'Form'. I've tried all the suggestions on SO, but nothing helps. Both FormsModule and ReactiveFormsModule are being imported.
It seems that this is one issue for which "No version of Angular has been more rigorously tested than has been Angular v9" has a bit more rigor needed
It should be 'formGroup' not 'FormGroup'. The F should be lowercase. Does that fix your issue?
Even worse, it doesn't recognize any Angular Material elements. I will start again with a simple Angular 9 app and see if I get different results, otherwise, I'll go back to 8 until I get this figured out.
Can you share your code? There was a change to formGroup in v9.
Are you using a form tag, or an ng-form tag?
Aaron, thanks for taking the time to help me track this down. Here are some snippets of the code and relevant parts of package.json.
Aaron,
The typo is in my message, not in my code.
I am going to try to use Material Forms, etc., to see if that will work. Otherwise I will either have to revert back to using Angular 8, or avoid using Reactive Forms for now
Don't do this if you have a reasonably complex project, it's nowhere near ready. Ivy breaks pretty much everything.
Fergal, Google has dozens of reasonably complex projects that are working fine. If you care to talk about what you ran in to, I can see if I can help (or get the Angular team to look at it with you).
Sure - first off ng update failed with
So.. I updated the packages manually in package.json, then ran ng update --migrateOnly
Then the horrowshow began!!
A large number of
Literally hundreds of errors of the type
and
I played wackamole with the errors for as long as I could but unfortunately I don't have a huge amount of time to devote to this just now so I had to revert back to 8.2
Wow. That sucks! I feel for you. That must have been frustrating.
If you went to look at it together, we can.
If I were to try it again, I would remove all node_modules, then reinstall, and THEN attempt to do the upgrade. Not sure it will help. I just like to eliminate possible corrupt modules from the equation.
Let me know if you want another set of eyes.
Hi Aaron
Yeah - I already tried removing node_modules and retrying, still the same.
I'm gonna take a break from it for now but will definitely take you up on your kind offer next time I try!
Fergal.
RC8 is orders of magnitude better, still lots of weird errors and template cleaning up required but a calm and level headed error by error approach worked wonders (it kind of reminded me of my STL programming days where fixing one issue resolved 100 compile errors 😱 ). Definitely a really nice "feel" to this release, all the template issues I had to fix were down to poor coding on my behalf, the time spent fixing them really feels like time well spent! And now I have a running, tests passing angular-9-rc8 version of my app!!
Thanks again for your support and for writing the article that pushed me to get it done!
I was expecting this kind of updated from the Google team as the React has gained the popularity and I was also expecting something very rigorous from the Google team to take the lead from React as well.
As Far as I am looking into the situation, I guess the Angular will beat the React once again in the coming time as this updates seems to improve many thins as well.
I don't think people are going to switch back to Angular if they did use it and are now onto something different. If people loved Angular but left for specific reasons that ivy solves, then maybe, but I just don't see that happening.
I think that I agree with Richard. While Ivy helps a lot, the fundamentals of what makes Angular and React different are still the same. People will still continue to choose React and Angular for what they already love them for.
I do hope that the Angular team comes up with some things to make Angular easier to learn, though.
Is there a blog post somewhere which sums up what Ivy is, what it does and why it is such a game changer? Admittedly, I've heard it mentioned a lot but feel as though I don't fully understand its purpose or why it is needed.
Here is one of many blogs about it that I have seen. dev.to/eugeniolentini/angular-ivy-...
Absolutely not. Angular 9 is simply not ready yet.
Here's my experience.
Installed 9. Created a project. Added @angular/material. Tons of compile errors. Did cache clean --force, compile errors gone. Added a material component, more compile errors. Had to cache clean again, every time I added a material component. Start editing project. Save files, nothing happens. No reload. Nothing. Have to Ctrl+C and do ng serve -o again.
20 minutes and I gave up. Uninstall @angular/cli. Lots and lots of errors when uninstalling. Doesn't uninstall. Have to manually remove @angular directory.
Installed Angular 8, back to normal working.
next.angular.io/guide/updating-to-... :)
levelup.gitconnected.com/upgrade-t...
Ok Arron, I'm in, is it as simple an npm install Angulur -v9.0
I updated the blog to include a link, but here is the doc you can follow: next.angular.io/guide/updating-to-...
It hung while updating to version 8. I retried but it still hung.
It hung on the first step of the instructions in the link to the doc I sent you?
ng update @angular/core@8 @angular/cli@8
is where it hung?Did you possibly have uncommitted changes? What is your OS What happsn if you delete your node_modules, do an
npm install
and then try it again?Yes had uncommited work. I'll try your suggestions. Tx