Reactjs 我能';不要在我的react typescript项目中使用javascript导入

Reactjs 我能';不要在我的react typescript项目中使用javascript导入,reactjs,typescript,firebase,Reactjs,Typescript,Firebase,我正在尝试使用firebase添加google登录功能。我正在使用react钩子和typescript。我似乎无法使用StyledFirebaseAuth模块。当我尝试渲染它时,它会出现以下错误 JSX element type 'StyledFirebaseAuth' is not a constructor function for JSX elements. Type 'StyledFirebaseAuth' is missing the following properties fr

我正在尝试使用firebase添加google登录功能。我正在使用react钩子和typescript。我似乎无法使用
StyledFirebaseAuth
模块。当我尝试渲染它时,它会出现以下错误

JSX element type 'StyledFirebaseAuth' is not a constructor function for JSX elements.
  Type 'StyledFirebaseAuth' is missing the following properties from type 'ElementClass': render, context, setState, forceUpdate, and 3 more.
JSX element type 'StyledFirebaseAuth' is not a constructor function for JSX elements.
  Type 'StyledFirebaseAuth' is missing the following properties from type 'ElementClass': render, context, setState, forceUpdate, and 3 more.
我已尝试检查我的tsconfig是否存在任何可能导致此问题的设置

这是我的进口货

从'react firebaseui/StyledFirebaseAuth'导入StyledFirebaseAuth

当我试图渲染

<StyledFirebaseAuth
 uiConfig={uiConfig}
 firebaseAuth={firebase.auth()}
 />

我知道了,谢谢。我所要做的就是删除我的包锁。我所要做的就是删除我的包锁。json

请发布你的
StyledFirebaseAuth
的代码,请发布你的
StyledFirebaseAuth