Closed as duplicate of#11416
Closed as duplicate of#11416
Description
Describe the bug
cant have smae name as variable ...
after using @sveltejs/vite-plugin-svelte@4.0.0-next.6
src/routes/+page.svelte:4:12 Identifier 'data' has already been declared
src/routes/+page.svelte:4:12
2 | import Counter from '$lib/Counter.svelte';
3 | type data = {}
4 | export let data;
^
5 | </script>
Reproduction URL
<script lang="ts">
import Counter from '$lib/Counter.svelte';
type data = {}
export let data;
</script>
Hello {data.name}!
Reproduction
Logs
-
System Info
-