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
Whenever you wrap something with the ThemeProvider in order to customize the theme, Typescript complains about this:
Property 'children' does not exist on type 'IntrinsicAttributes & ThemeProviderProps'
In order to solve it I had to go to ThemeProvider.d.ts and change line 34 from export declare const ThemeProvider: React.FC<ThemeProviderProps>;
to export declare const ThemeProvider: React.FC<PropsWithChildren<ThemeProviderProps>>;
It looks like this is simply a TS typing issue. I would open a PR myself but unfortunately I don't have much time lately.
The text was updated successfully, but these errors were encountered:
Whenever you wrap something with the ThemeProvider in order to customize the theme, Typescript complains about this:
In order to solve it I had to go to ThemeProvider.d.ts and change line 34 from
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
to
export declare const ThemeProvider: React.FC<PropsWithChildren<ThemeProviderProps>>;
It looks like this is simply a TS typing issue. I would open a PR myself but unfortunately I don't have much time lately.
The text was updated successfully, but these errors were encountered: