Troubleshooting

Common fixes when toasts look wrong, never dismiss, or fail to import in a framework project.

Toasts have no styles

The package entry injects CSS automatically for normal installs. If you tree-shake oddly or use a custom bundler setup, importalert-notify/style.css once near your app entry.

Theme does not follow my app

Set theme: "system" and ensure your document useshtml.dark, html.light, or data-theme. Or force theme: "dark" / "light".

Toast never dismisses

Loading toasts default to autoClose: false. For sticky toasts prefer autoClose: false instead of duration: Infinity. Call toast.dismiss(id) or update the same id via promise/success.

Wrong import for framework helpers

Svelte custom content

Prefer custom({ component, props }) from alert-notify/svelte/toast. Plain DOM nodes still work with core toast.custom(el).

Still stuck?

Open the playground, compare againstAPI, or file an issue on GitHub.