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
Hi,
I'm trying to use slot names via ENUM to make sure I don't have typo's in the slot names.
ENUM
<script context="module" lang="ts"> export const TESTING_SLOT_NAME = 'testing'; </script> <slot name={TESTING_SLOT_NAME}></slot>
But i'm getting the error: <slot> name cannot be dynamicsvelte(dynamic-slot-name)
<slot> name cannot be dynamicsvelte(dynamic-slot-name)
I tried making the variable in typescript ReadOnly<string>
ReadOnly<string>
I also tried disabling the rule but it wouldn't work either.
Unless there's another way to safely type the slot names other than an ENUM?
The text was updated successfully, but these errors were encountered:
This is a Svelte compiler error, not a warning. This is an open feature request on the Svelte core repo: sveltejs/svelte#6493
Sorry, something went wrong.
No branches or pull requests
Hi,
I'm trying to use slot names via
ENUM
to make sure I don't have typo's in the slot names.But i'm getting the error:
<slot> name cannot be dynamicsvelte(dynamic-slot-name)
I tried making the variable in typescript
ReadOnly<string>
I also tried disabling the rule but it wouldn't work either.
Unless there's another way to safely type the slot names other than an
ENUM
?The text was updated successfully, but these errors were encountered: