Skip to content

[Bug]: Property 'children' does not exist on type 'ThemeProviderProps' in React 19 #367

@raymondhechen

Description

@raymondhechen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions