-
Notifications
You must be signed in to change notification settings - Fork 24.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since RC.11 Class HostBinding throws an error #35118
Comments
@Benny739 could you please:
Thank you! |
It's also happing with RC13. Edit:
The error is only happening when rendered through ngFor. |
@Benny739 thnx for the info regarding rc.13 and code snippet(s). What would be immensely helpful, though, is a narrowed-down reproduce scenario that we could run (a minimal git repository). It might be hard to investigate / know that we are fixing the right bug based just on the code snippets provided. |
I reproduced the issue:
DEMO https://ng-run.com/edit/G9pVPW5M9g6fNoOnZuWC?open=app%2Fapp.component.ts&aot=true |
Inside `*ngFor` the second run of the styling instructions can get into situation where it tries to read a value from a binding which has not yet executed. As a result the read is `NO_CHANGE` value and subsequent property read cause an exception as it is of wrong type. Fix angular#35118
Inside `*ngFor` the second run of the styling instructions can get into situation where it tries to read a value from a binding which has not yet executed. As a result the read is `NO_CHANGE` value and subsequent property read cause an exception as it is of wrong type. Fix angular#35118
@alexzuza thank you for the repro. It helped a lot! |
…#35133) Inside `*ngFor` the second run of the styling instructions can get into situation where it tries to read a value from a binding which has not yet executed. As a result the read is `NO_CHANGE` value and subsequent property read cause an exception as it is of wrong type. Fix angular#35118 PR Close angular#35133
…#35133) Inside `*ngFor` the second run of the styling instructions can get into situation where it tries to read a value from a binding which has not yet executed. As a result the read is `NO_CHANGE` value and subsequent property read cause an exception as it is of wrong type. Fix angular#35118 PR Close angular#35133
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Since RC.11 Class HostBinding throws an error in dev mode (only in dev mode).
core.js:5816 ERROR Error: ASSERTION ERROR: Expecting an array [Expected=> true == false <=Actual]
at throwError (core.js:1311)
at assertEqual (core.js:1260)
at _arrayIndexOfSorted (core.js:1614)
at keyValueArrayIndexOf (core.js:1576)
at keyValueArrayGet (core.js:1558)
at findStylingValue (core.js:23794)
at updateStyling (core.js:23727)
at checkStylingProperty (core.js:23201)
at Module.ɵɵclassProp (core.js:23089)
at MatIcon_HostBindings (icon.js:1304)
Prod mode is working finde, looks like some test is not working properly.
The text was updated successfully, but these errors were encountered: