Skip to content

pnpm dev breaks; pnpm build works with #each block in +layout.svelte #10508

Closed
@svelte-kit-so-good

Description

@svelte-kit-so-good

Describe the bug

This relates to closed issues (10437 and 10473).

@dummdidumm below is a video to better illustrate my issue.

  • The video starts with the working case (i.e. using pnpm build). When I then try with pnpm dev the demo breaks (modal doesn't transition away ... gets stuck).

  • Not explicitly shown in the video (but right underneath and commented out) is another component <IframeModals/>, which uses the #each block internally ... and it works both with pnpm dev and pnpm build. I have also updated the SvelteLab repro using alpha 56 so you can test this out

broken_modal.mp4

Reproduction

SvelteLab demo

Logs

No response

System Info

Svelte v5.0.0-next.56 ... but tried since alpha 51 and down to alpha 20

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting submitterneeds a reproduction, or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions