Describe the bug
For some reason, lucide-svelte is not working properly with Svelte 5,
Example code,
<script lang="ts">
import { Loader2 } from 'lucide-svelte';
let visible = $state(true);
</script>
<button on:click={() => visible = !visible}>Toggle</button>
{#if visible}
<Loader2 />
{/if}
The svg is only displayed at the beginning and after clicking on toggle doesn't appear again.
This issue doesn't occur with Svelte 4. Not sure if this is a Svelte 5 issue.
Reproduction
SvelteLab Svelte 5 Example
SvelteLab Svelte 4 Example
Logs
No response
System Info
System:
OS: macOS 14.2
CPU: (12) arm64 Apple M2 Pro
Memory: 213.45 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 21.2.0 - /opt/homebrew/bin/node
Yarn: 1.22.21 - /opt/homebrew/bin/yarn
npm: 6.14.16 - /opt/homebrew/bin/npm
pnpm: 8.10.5 - /opt/homebrew/bin/pnpm
bun: 1.0.3 - ~/.bun/bin/bun
Browsers:
Chrome: 119.0.6045.159
Chrome Canary: 121.0.6145.0
Safari: 17.2
Severity
blocking an upgrade
Describe the bug
For some reason, lucide-svelte is not working properly with Svelte 5,
Example code,
The svg is only displayed at the beginning and after clicking on toggle doesn't appear again.
This issue doesn't occur with Svelte 4. Not sure if this is a Svelte 5 issue.
Reproduction
SvelteLab Svelte 5 Example
SvelteLab Svelte 4 Example
Logs
No response
System Info
System: OS: macOS 14.2 CPU: (12) arm64 Apple M2 Pro Memory: 213.45 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 21.2.0 - /opt/homebrew/bin/node Yarn: 1.22.21 - /opt/homebrew/bin/yarn npm: 6.14.16 - /opt/homebrew/bin/npm pnpm: 8.10.5 - /opt/homebrew/bin/pnpm bun: 1.0.3 - ~/.bun/bin/bun Browsers: Chrome: 119.0.6045.159 Chrome Canary: 121.0.6145.0 Safari: 17.2Severity
blocking an upgrade