You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'ReactLoading' cannot be used as a JSX component. #66
ERROR in src/components/newDesign/pages/login/LoginPage.tsx:93:38
TS2786: 'ReactLoading' cannot be used as a JSX component.
Its instance type 'Loading' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
Type 'React.ReactNode' is not assignable to type 'import("C:/Users/PC/OneDrive/Desktop/iplant/frontend/iplant/node_modules/@types/react-table/node_modules/@types/react/index").ReactNode'.
Type '{}' is not assignable to type 'ReactNode'.
91 | <InputItem fullWidth type='password' {...register("password")} />
92 | </FormItemContainer>
> 93 | <ReactLoading type='bubbles' color="white" />
| ^^^^^^^^^^^^
94 | <FormButton type="submit" disabled={isSubmitting}>
95 | {isSubmitting ? 'loading' : 'Login'}
96 | </FormButton>
Reacted by Sigurd Heggemsnes, Rafael Caetano, Cole Pacak, jadenmazzone and Shunsuke Hioki
Got around this issue by doing this --
in the tsconfig.json
{
"compilerOptions": {
"jsx":"react",
"strict": true,
"paths": {
"react": [ "./node_modules/@types/react" ]
}
}
}
Hi,
I’m interested in working on this issue. Could you please assign it to me? This will be my first contribution, and I’m excited to get started. Let me know if there are any specific guidelines or steps I should follow.
Activity
bhavyagor12 commentedon Oct 25, 2023
Hey is there a fix available for this?
bhavyagor12 commentedon Oct 25, 2023
Got around this issue by doing this --
in the tsconfig.json
{
"compilerOptions": {
"jsx":"react",
"strict": true,
"paths": {
"react": [ "./node_modules/@types/react" ]
}
}
}
stack overflow link
mahtabhnp commentedon Dec 23, 2024
Hi,
I’m interested in working on this issue. Could you please assign it to me? This will be my first contribution, and I’m excited to get started. Let me know if there are any specific guidelines or steps I should follow.
Thank you!
@mohapakram