Reactjs 我能';不要在我的react typescript项目中使用javascript导入
我正在尝试使用firebase添加google登录功能。我正在使用react钩子和typescript。我似乎无法使用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
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