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
Describe the bug When using the rest props like so let { ...rest } = $props(); inside of a svelte file with <script lang="ts> an error shows up saying
let { ...rest } = $props();
<script lang="ts>
`p` has already been declaredsvelte(declaration_duplicate)
To Reproduce Create a svelte component like the following
<script lang="ts"> let { ...rest }: { test: string } = $props(); </script>
I am using esbuild-svelte but the error goes away if I don't use svelte-preprocess
✘ [ERROR] `p` has already been declared [plugin esbuild-svelte] second.svelte:6:24: 6 │ let { ...rest } = $props();
Expected behavior I should be able to use the rest props syntax in a typescript svelte file
Information about your project:
OS: Ubuntu Linux
svelte-preprocess version 6.0.3
Additional Info The error also shows up for me when using vscode with the Svelte for VSCode extension
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When using the rest props like so
let { ...rest } = $props();
inside of a svelte file with<script lang="ts>
an error shows up sayingTo Reproduce
Create a svelte component like the following
I am using esbuild-svelte but the error goes away if I don't use svelte-preprocess
Expected behavior
I should be able to use the rest props syntax in a typescript svelte file
Information about your project:
OS: Ubuntu Linux
svelte-preprocess version 6.0.3
Additional Info
The error also shows up for me when using vscode with the Svelte for VSCode extension
The text was updated successfully, but these errors were encountered: