-
Notifications
You must be signed in to change notification settings - Fork 395
build: enable strictPropertyInitialization #689
Conversation
87a640c
to
d188ae4
Compare
@crisbeto can you please take a look at this Circle CI error? It seems to be related to the Portal Changes in 9.0.0. Should I file a bug here or is there some misconfiguration in this PR? Edit: ✅ solved |
d188ae4
to
7109a0d
Compare
7109a0d
to
f919ec8
Compare
I just found that this branch/PR were passing on CircleCI, but failing to build locally. It appears that Note that these Template Type Checking errors are new in Angular Additionally, it also runs |
OK, the issues that I'm hitting were introduced in Angular I'm investigating how to solve them, but I don't feel like my current solution is solid, so I'm continuing to investigate. |
@crisbeto or @JoostK do you have any guidance here? Template<ng-container *ngIf="componentViewer.componentDocItem | async; let docItem">
<span class="cdk-visually-hidden" tabindex="-1" #initialFocusTarget>
Examples for {{docItem.id}}
</span>
<example-viewer *ngFor="let example of docItem.examples"
[example]="example"></example-viewer>
</ng-container> There are errors for
Solutions?It's complaining about The tests in PR angular/angular#33997 don't cover the use case where the Async Pipe is used. How do you recommend developers solve this very common use case? |
@Splaktar ah, this is interesting. Using When used with a let assignment to I'll have a look to see if there's something that can be done here. |
@JoostK I tried the following and got the same errors: <ng-container *ngIf="componentViewer.componentDocItem | async as docItem"> |
e082185
to
0671f45
Compare
@JoostK here is the workaround that I had to apply to get our repo building again after the breaking change in Angular Do you have an open GitHub issue to track this or should I open one? I wasn't able to find one after looking through the Angular issues. |
d01f9c8
to
58b2166
Compare
58b2166
to
43e17cd
Compare
- related bug that is now fixed: angular/angular#34572 - related discussion: angular#689 (comment)
PR #926 reverts the workarounds, mentioned above, to get the builds working with the async pipe type narrowing bug. |
ca3527b
to
bbdd1e1
Compare
- related bug that is now fixed: angular/angular#34572 - related discussion: #689 (comment)
- fix related build errors - complete `this._destroyed` in `ngOnDestroy()` - replace use of deprecated `DomPortalHost` with `DomPortalOutlet`
bbdd1e1
to
6e305c5
Compare
@jelbourn this is the PR I mentioned in the meeting and you said that you would take a quick look at. This would get us closer to being aligned with the Angular CLI's strict mode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- related bug that is now fixed: angular/angular#34572 - related discussion: angular/material.angular.io#689 (comment)
- related bug that is now fixed: angular/angular#34572 - related discussion: angular/material.angular.io#689 (comment)
- related bug that is now fixed: angular/angular#34572 - related discussion: angular/material.angular.io#689 (comment)
- related bug that is now fixed: angular/angular#34572 - related discussion: angular/material.angular.io#689 (comment)
- related bug that is now fixed: angular/angular#34572 - related discussion: angular/material.angular.io#689 (comment)
this._destroyed
inngOnDestroy()
DomPortalHost
withDomPortalOutlet
Builds on PR #688