You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can leave out the tag name ... Consumers of the component can still name it afterwards if needed, using the static element property ...
However in the actual project when you want to set some other options, eg <svelte:options customElement={{}} /> the tag property is suddenly required.
Setting the tag would disallow the use of the customElements in a selective way as required by the consumer, auto-defining the customElement at import time with a pre-defined tag.
It appears to be only a type error, for example if we ignore it and run the app, it works as expected, so maybe it’s the matter of making the ‘tag’ key optional in the customElement type
Describe the bug
The docs state
However in the actual project when you want to set some other options, eg
<svelte:options customElement={{}} />
thetag
property is suddenly required.Setting the tag would disallow the use of the customElements in a selective way as required by the consumer, auto-defining the customElement at import time with a pre-defined tag.
This is currently present in both v4 and v5.
Reproduction
https://svelte.dev/repl/5fb1659f5ea24696ae342144eb492acb?version=4.2.19
Logs
No response
System Info
Severity
blocking all usage of svelte
The text was updated successfully, but these errors were encountered: