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
svelte:element
this
In the code example below, when I use ...props, there is no problem:
...props
<svelte:element this="div" {...props}> this is div ! </svelte:element>
But when I try to make this dynamic, even with a simple string, I get an error saying props is not defined.
props is not defined
<svelte:element this={"div"} {...props}> this is div ! </svelte:element>
https://svelte.dev/repl/1c5c200152784ab9802b2333b01124f1?version=4.1.2
Uncaught ReferenceError: props is not defined
System: OS: macOS 12.6.7 CPU: (8) arm64 Apple M2 Memory: 113.55 MB / 8.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 20.4.0 - ~/.nvm/versions/node/v20.4.0/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v20.4.0/bin/yarn npm: 9.7.2 - ~/.nvm/versions/node/v20.4.0/bin/npm pnpm: 8.6.10 - ~/.nvm/versions/node/v20.4.0/bin/pnpm Browsers: Brave Browser: 115.1.56.14 Safari: 15.6.1 npmPackages: rollup: ^3.27.2 => 3.27.2 svelte: ^4.0.5 => 4.1.2
blocking all usage of svelte
The text was updated successfully, but these errors were encountered:
fix: svelte:element with dynamic this and spread attributes throws er…
228dd4d
…ror (#9112) fixes #9092 --------- Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com> Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
4af97ce
…ror (sveltejs#9112) fixes sveltejs#9092 --------- Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com> Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Successfully merging a pull request may close this issue.
Describe the bug
In the code example below, when I use
...props
, there is no problem:But when I try to make
this
dynamic, even with a simple string, I get an error sayingprops is not defined
.Reproduction
https://svelte.dev/repl/1c5c200152784ab9802b2333b01124f1?version=4.1.2
Logs
System Info
Severity
blocking all usage of svelte
The text was updated successfully, but these errors were encountered: