What happened?
Hi! I'm getting the error Property 'children' does not exist on type 'ThemeProviderProps' with react 19. Any idea what the issue is? Here's the versions I'm on:
- "react": "19.1.1",
- "react-dom": "19.1.1",
- "@types/react": "^19.1.12",
- "@types/react-dom": "^19.1.9",
'use client'
import * as React from 'react'
import { ThemeProvider as NextThemesProvider } from 'next-themes'
export function ThemeProvider({
children,
...props
}: React.ComponentProps<typeof NextThemesProvider>) {
return <NextThemesProvider {...props}>{children}</NextThemesProvider>
}
Version
0.4.6
What browsers are you seeing the problem on?
No response
What happened?
Hi! I'm getting the error
Property 'children' does not exist on type 'ThemeProviderProps'with react 19. Any idea what the issue is? Here's the versions I'm on:Version
0.4.6
What browsers are you seeing the problem on?
No response