Skip to content

Support for React 19 types in AuthProvider #637

Closed

Description

@devth

Version info

React: 19

Firebase: 11.0.2

ReactFire: 4.2.3

Other (e.g. Node, browser, operating system) (if applicable): Node 20

Problem

As of this change to react/@types, reactfire no longer type checks. It errors like:

Type error: 'AuthProvider' cannot be used as a JSX component.
  Its type '(props: PropsWithChildren<{ sdk: Auth; }>) => Element' is not a valid JSX element type.
    Type '(props: PropsWithChildren<{ sdk: Auth; }>) => Element' is not assignable to type '(props: any) => ReactNode | Promise<ReactNode>'.
      Type 'Element' is not assignable to type 'ReactNode | Promise<ReactNode>'.

Expected behavior

It type checks against react 19.

Activity

  1. added a commit that references this issue on Jul 9, 2026
    9293ec4
  2. added 2 commits that reference this issue on Jul 15, 2026
    137ce72
    3b5da48
  3. locked and limited conversation to collaborators on Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions