You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using bindable props as a way to share state from the child component to the parent component, which works for all of my projects except one that consistently error "is declared but its value is never read" for some reason. I have tried downgrading svelte and svelte-check to no avail, so any guidance on how to narrow down the issue would be greatly appreciated.
Please note that I haven't been able to narrow it down to make a minimal reproduction so cloning the entire repo (git clone https://git.sr.ht/~lts20050703/wist) is the only way that I can consistently reproduce this bug.
This is the only project that I can consistently reproduce this bug, I have other projects that also copy pasted that is_night.svelte file but I can't get svelte-check to error.
Logs
svelte-check
====================================
Loading svelte-check in workspace: /home/lts20050703/git/wist
Getting Svelte diagnostics...
/home/lts20050703/git/wist/src/lib/client/is_night.svelte:2:6
Error: 'is_night' is declared but its value is never read. (ts)
<script lang="ts">
let { is_night = $bindable() }: { is_night: boolean } = $props()
====================================
svelte-check found 1 error and 0 warnings in 1 file
Describe the bug
I'm using bindable props as a way to share state from the child component to the parent component, which works for all of my projects except one that consistently error "is declared but its value is never read" for some reason. I have tried downgrading
svelte
andsvelte-check
to no avail, so any guidance on how to narrow down the issue would be greatly appreciated.Reproduction
https://git.sr.ht/~lts20050703/wist/tree/main/item/src/lib/client/is_night.svelte
Please note that I haven't been able to narrow it down to make a minimal reproduction so cloning the entire repo (
git clone https://git.sr.ht/~lts20050703/wist
) is the only way that I can consistently reproduce this bug.This is the only project that I can consistently reproduce this bug, I have other projects that also copy pasted that
is_night.svelte
file but I can't getsvelte-check
to error.Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: