-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Svelte 5: TypeError: null is not an object (evaluating 'metadata.parent') when assigning value to $bindable #11204
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
Comments
Logging more info with |
Edit 2 @dummdidumm : It's the |
I have the same error using |
@dummdidumm I made a very minimal reproductible demo (without The buttons should be self-explenatory. From what I understand, the error is raised when I try to edit one of the properties of an object stored in a rune that is itself passed as a |
@chainlist The issue appears as well without passing the rune object to another component — REPL This issue started since [email protected]. |
Indeed @ChristopheCorbalan. I suspected as well it was from #11184 |
Ownership was not widened when assigning a sub state to a different top level state. The set of owners for the state was zero because the owner was on the original parent, but that one was reset to null because it's now the top level of a different state. That meant that there was no owner but also no parent to check for the owner, which is an invalid combination resulting in a nullpointer (and also potentially false positive warnings in other situations). fixes #11204
Ownership was not widened when assigning a sub state to a different top level state. The set of owners for the state was zero because the owner was on the original parent, but that one was reset to null because it's now the top level of a different state. That meant that there was no owner but also no parent to check for the owner, which is an invalid combination resulting in a nullpointer (and also potentially false positive warnings in other situations). fixes #11204
Describe the bug
Everything works as expected, until calling select on a result.
I get the error
TypeError: null is not an object (evaluating 'metadata.parent')
fromget_owner
when assigningplace = result
.console.log
ing result gives me aProxy({...result})
Tried with
result.id
andresults.find(...)
but same error, I think its localised to the actual assigning part.Reproduction
Logs
`TypeError: null is not an object (evaluating 'metadata.parent')`
System Info
System: OS: macOS 14.4.1 CPU: (10) arm64 Apple M1 Pro Memory: 171.11 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 21.7.2 - /opt/homebrew/bin/node npm: 10.5.0 - /opt/homebrew/bin/npm Browsers: Chrome: 123.0.6312.124 Safari: 17.4.1 npmPackages: svelte: ^5.0.0-next.1 => 5.0.0-next.107
Severity
annoyance
The text was updated successfully, but these errors were encountered: