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
Hi, I have everything working well, but as soon as I try to build i got this issue :
Type error: 'Reaptcha' cannot be used as a JSX component.
Its instance type'Reaptcha' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
Type 'string | number | boolean | ReactFragment | Element | null | undefined' is not assignable to type'ReactNode'.
Type 'ReactFragment' is not assignable to type'ReactNode'.
Type 'Iterable<React.ReactNode>' is not assignable to type'Iterable<import("/Users/raf/Documents/PiNGS/discord-oauth/node_modules/@types/react-dom/node_modules/@types/react/index").ReactNode>'.
Type 'React.ReactNode' is not assignable to type'import("/Users/raf/Documents/PiNGS/discord-oauth/node_modules/@types/react-dom/node_modules/@types/react/index").ReactNode'.
Type 'ReactElement<any, string | JSXElementConstructor<any>>' is not assignable to type'ReactNode'.
Property 'children' is missing intype'ReactElement<any, string | JSXElementConstructor<any>>' but required intype'ReactPortal'.
38 |<form>
39 | {isLoading &&<Loader color="black" />}
> 40 |<Reaptcha
| ^
41 | sitekey={RECAPTCHA_KEY}
42 | onVerify={(token) => onVerify(token)}
43 | onRender={() => setIsloading(false)}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I'm using NextJS.
I think the problem come from the definition of types here :
Hi, I have everything working well, but as soon as I try to build i got this issue :
I'm using NextJS.
I think the problem come from the definition of types here :
changing it to
Allowed me to build with no issue
The text was updated successfully, but these errors were encountered: