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
Type error: 'ThemeProvider' cannot be used as a JSX component.
Its return type 'string | number | boolean | Iterable<ReactNode> | Element' is not a valid JSX element.
The text was updated successfully, but these errors were encountered:
For me, the problem was introduced: next-themes ^0.2.1 → ^0.3.0
Type error: 'ThemeProvider' cannot be used as a JSX component.
Its return type 'string | number | boolean | Element | Iterable<ReactNode>' is not a valid JSX element.
Type 'string' is not assignable to type 'ReactElement<any, any>'.
@javi95z We need more information if we are to look into this. Can you please provide a reproduction?
(Context: I have ~10 Next.js Apps on v14 with next-themes v0.3 running without any such issues)
The text was updated successfully, but these errors were encountered: