firebase/firebaseui-web-react

`StyledFirebaseAuth` cannot be used as a JSX component

margual56 opened this issue · 1 comments

The code:

return (
    <StyledFirebaseAuth
        uiConfig={firebaseAuthConfig}
        firebaseAuth={auth}
    />
);

Gives the error:

Its instance type 'StyledFirebaseAuth' is not a valid JSX element.
   The types returned by 'render()' are incompatible between these types.
      Type '{}' is not assignable to type 'ReactNode'


However, FirebaseAuth does not rise this error.


I'm using:

"dependencies": {
    "bootstrap": "^4.6.0",
    "firebase": "^9.1.3",
    "firebase-admin": "^10.0.0",
    "js-cookie": "^2.2.1",
    "next": "12",
    "react": "^17.0.2",
    "react-bootstrap": "^1.5.2",
    "react-dom": "^17.0.2",
    "react-firebaseui": "^6.0.0"
  }

Suddenly I'm not able to reproduce this anymore.

Sorry for the inconvenience...