-
Notifications
You must be signed in to change notification settings - Fork 517
Upgrade Angular template to 2.4.4 #597
Conversation
Update with latest from JSS
Hi @EduardTheThird, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! TTYL, DNFBOT; |
Did you make sure to The available workarounds don't work on 2.4.x unfortunately, but I'm hoping we get 1 last release of angular2-universal so that it works until we move (the main engine) everything into Angular Core itself. |
Angular 2.4.4 breaks prerendering due to issues in angular2-universal, this is a workaround until angular2-universal releases a new compatible version.
Hi @MarkPieszak I was able to upgrade to Angular 2.4.4 while keeping prerendering disabled. Obviously this is not ideal and breaks an important part of the Angular 2 template and only masks the angular2-universal SelectorMatcher error, so feel free to reject and abandon this PR! We need Angular 2.4 for the UI controls we would like to use, thus this temporary workaround 🤕 After generating a new Angular 2 template, I made the changes as per this PR and ran the following:
|
Thanks for the suggestion @EduardTheThird. As I think you can guess, we won't be able to merge this since it works by entirely disabling a major feature (server-side prerendering). We will certainly update to the latest version of Angular as soon as Angular Universal support permits. |
From what I can tell with Angular Universal they're punting on new builds and just commenting in tickets that it will be supported in V4. That means a complete freeze on new angular builds until V4 comes out. Ouch. |
@MarkPieszak Do you think you could try to find out if/when we can realistically expect an update to Angular Universal to support newer versions of Angular? If it's potentially a while off, we might need to remove Angular Universal from the templates to allow an update to a newer version of Angular, because being stuck on the old one will become a bigger problem than losing server-side prerendering. |
Sure let me get back to you guys! @SteveSandersonMS @JohnGalt1717 I've been pushing to get a final release under the old angular2-universal prior to the move to Core that works with 2.4.x 👍🎈 |
Any word on this? We're trying to decide direction on a new project at the moment so time is not on my side. |
@JohnGalt1717 Apologies for the delay! In a month we'll have Universals core serialization engine inside of Angular Core itself, but you'll be fine getting started now. @SteveSandersonMS Would you want me to implement the workaround here or would you prefer Universal to support the latest version on its own? |
@MarkPieszak It would be great if Angular Universal had your workaround built-in so that we could consider 2.4.5+ support to be a native feature. Is there any chance of publishing a release that includes that? In the meantime, I've published an update to
... since I don't know whether the workaround is definitely sufficient to support all Angular features. But like I say, it would be better if this fix was natively included in Angular Universal so that we could drop the 'experimental' label and just consider it to be a fully-supported version. BTW your workaround is in the NPM package |
Oh great, good idea! We should of pushed out a quick npm package like that to begin with :) I'm meeting with the guys Friday afternoon to talk about everything, so let me get back to you after that. I'll see if it's possible to get that in there (with everything working properly). I'll get back to you as soon as I hear more! @SteveSandersonMS |
Resolves #406 where Angular template could not be updated to Angular 2.1.1.