sveltejs / svelte

Cybernetically enhanced web apps
https://svelte.dev
MIT License
78.04k stars 4.08k forks source link

Store cannot be bound multiple times in the same parameter list #9612

Closed itsonlyjames closed 9 months ago

itsonlyjames commented 9 months ago

Describe the bug

Using svelte 5.0.0-next.10 produces an error where "modalStore" (a store) cannot be bound multiple times in the same parameter list.

Based on the docs

Current Svelte code will continue to work without any adjustments. Components using the Svelte 4 syntax can use components using runes and vice versa.

Ideally we're expecting this to be resolved for the sake of backwards compatibility without affecting existing components.

image

The affected svelte file: https://github.com/skeletonlabs/skeleton/blob/master/packages/skeleton/src/lib/utilities/Modal/Modal.svelte

Reproduction

https://github.com/mmailaender/svelte5

Run

pnpm i
pnpm dev

Logs

n/a

System Info

System:
    OS: macOS 14.0
    CPU: (10) arm64 Apple M2 Pro
    Memory: 65.84 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.18.0 - ~/.nvm/versions/node/v18.18.0/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.8.1 - ~/.nvm/versions/node/v18.18.0/bin/npm
    bun: 1.0.4 - /usr/local/bin/bun
  Browsers:
    Chrome: 119.0.6045.159
    Safari: 17.0

Severity

blocking an upgrade

itsonlyjames commented 9 months ago

Closing due to duplicate of #9611