Skip to content

Error on create multiple toasts with svelte-sonner #12273

Closed
@ariel-salgado

Description

@ariel-salgado

Describe the bug

Although this look like library a related problem, when upgrading svelte 5 from next.170 to next.171 broke the library.
It seems very related to this.

Reproduction

The reproduction is very straight forward, when using the next.171 version if you click the button Toast to display a toast and wait until it goes away or dismiss, and click again it works fine, but if you spam the button it just creates one toast and then throws an error which you can see in the dev tools console.

This error doesnt exist in the next.170 version, and spamming the button creates a lot of toasts with no errors.

SvelteLab

I only installed svelte 5 and svelte sonner for the reproduction. So if you want to try it yourself it will work the same.

Logs

TypeError: Cannot read properties of null (reading 'start') at reconcile (chunk-...)...

System Info

SvelteLab

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions