wobsoriano / svedux

An easy way to integrate Redux with Svelte.
3 stars 0 forks source link

Provider Component error: "Property 'children' is missing in type ..." #1

Open Dan503 opened 1 month ago

Dan503 commented 1 month ago

Error: Property 'children' is missing in type '{ store: EnhancedStore<{ api: CombinedState<{}, "todo", "api">; counter: number; toDo: EntityState<ToDoItemType, string>; }, UnknownAction, Tuple<...>>; }' but required in type '{ store: Store<any, UnknownAction, unknown>; children: any; }'

This error occurs because of this line:

{@render children()}

If you remove the concept of the children prop from the component and replace it with a basic slot it would work perfectly.

<slot />

Dan503 commented 1 month ago

This might be because I'm using Svelte 4, not Svelte 5.