We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello everyone,
Since svelte version 3.41, we cannot compile code containing default values in destruct.
Compilation exits with Cannot read property 'subscribable' of undefined
Cannot read property 'subscribable' of undefined
<script> const myObject = {}; const { foo: { bar } = {} } = myObject; </script>
Svelte 3.40 : works fine Svelte 3.41 : Error compiling component. Cannot read property 'subscribable' of undefined
Error compiling component. Cannot read property 'subscribable' of undefined
This makes us rewrite all these assignements as :
const { bar } = myObject?.foo ?? {};
Did we miss something in the changelog ?
3.40.3 : https://svelte.dev/repl/3fa45ef9bff943d3acdee9ba35fbc577?version=3.40.3 3.41.0 : https://svelte.dev/repl/3fa45ef9bff943d3acdee9ba35fbc577?version=3.41.0 Current: https://svelte.dev/repl/3fa45ef9bff943d3acdee9ba35fbc577?version=latest
No response
Repl environment
annoyance
The text was updated successfully, but these errors were encountered:
Probably related to a change in either #6578 or #6574
Sorry, something went wrong.
This should be fixed in 3.42.5 - https://svelte.dev/repl/3fa45ef9bff943d3acdee9ba35fbc577?version=3.42.5
Successfully merging a pull request may close this issue.
Describe the bug
Hello everyone,
Since svelte version 3.41, we cannot compile code containing default values in destruct.
Compilation exits with
Cannot read property 'subscribable' of undefined
Svelte 3.40 : works fine
Svelte 3.41 :
Error compiling component. Cannot read property 'subscribable' of undefined
This makes us rewrite all these assignements as :
const { bar } = myObject?.foo ?? {};
Did we miss something in the changelog ?
Reproduction
3.40.3 : https://svelte.dev/repl/3fa45ef9bff943d3acdee9ba35fbc577?version=3.40.3
3.41.0 : https://svelte.dev/repl/3fa45ef9bff943d3acdee9ba35fbc577?version=3.41.0
Current: https://svelte.dev/repl/3fa45ef9bff943d3acdee9ba35fbc577?version=latest
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: