-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
setJSActionAttribute: Cannot read properties of null (reading 'type') #56073
Labels
area: core
Issues related to the framework runtime
core: event dispatch
core: hydration
P2
The issue is important to a large percentage of users, with a workaround
state: confirmed
state: has PR
Milestone
Comments
Fwiw the issue occurs when there is a |
AndrewKushnir
added a commit
to AndrewKushnir/angular
that referenced
this issue
May 24, 2024
…ion logic Previously, the event replay serialization logic was located before we verify that a `TNode` exists. `TNode`s may not exist in `tView.data` array in several cases, including cases when there is a local ref used on an element: in this case an extra slot in `LView` contains a reference to the same element and `TNode` is not needed. This commit moves the event replay serialization logic a bit lower, after we check for TNode presence. Resolves angular#56073.
3 tasks
@zip-fa thanks for the repro and thanks @JeanMeche for the investigation. I've created a fix, see PR #56076. The problem was caused by the fact that we've invoked event replay serialization logic before we check that all the necessary info is available (see PR description for additional info). |
pkozlowski-opensource
pushed a commit
that referenced
this issue
May 27, 2024
…ion logic (#56076) Previously, the event replay serialization logic was located before we verify that a `TNode` exists. `TNode`s may not exist in `tView.data` array in several cases, including cases when there is a local ref used on an element: in this case an extra slot in `LView` contains a reference to the same element and `TNode` is not needed. This commit moves the event replay serialization logic a bit lower, after we check for TNode presence. Resolves #56073. PR Close #56076
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: core
Issues related to the framework runtime
core: event dispatch
core: hydration
P2
The issue is important to a large percentage of users, with a workaround
state: confirmed
state: has PR
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
withEventReplay()
feature does not work on fresh angular project.This is my app.config.ts:
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: