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
'players' is possibly 'null' or 'undefined'. ts(18049)
This is because TypeScript doesn't narrow the type like this. It's not something we can fix. You can move the players || [] part to another derived/reactive variable so it'll always be not nullable, or use the ! operator to tell TS "I know what I'm doing this is not null" (now possible in SVelte 5): bind:player={players![i]}
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
In Svelte 4 app I was using:
Now with Svelte 5 I need to use:
But now player is unused and I get the ts warning:
Plus, with the latter one I get another typscript warning:
even if I'm already inside an
{#each players}
.The text was updated successfully, but these errors were encountered: