Next.js Discord

Discord Forum

error on building

Unanswered
bryan posted this in #help-forum
Open in Discord
when i'm trying to build on vercel i'm getting this error, on nextjs 13.3.4
error 
Type error: 'Component' cannot be used as a JSX component.
  Its element type 'Component<any, any, any> | ReactElement<any, any> | null' is not a valid JSX element.
    Type 'Component<any, any, any>' is not assignable to type 'Element | ElementClass | null'.
      Type 'Component<any, any, any>' is not assignable to type 'ElementClass'.
        The types returned by 'render()' are incompatible between these types.
          Type 'React.ReactNode' is not assignable to type 'import("/vercel/path0/node_modules/@types/react-dom/node_modules/@types/react/ts5.0/index").ReactNode'.
            Type 'ReactElement<any, string | JSXElementConstructor<any>>' is not assignable to type 'ReactNode'.
              Property 'children' is missing in type 'ReactElement<any, string | JSXElementConstructor<any>>' but required in type 'ReactPortal'.
   7 |         <link rel="icon" href="../public/design/LE-PETIT-BASQUE_Logo_Q.svg" sizes="any"/>
   8 |         <html lang="fr"></html>
>  9 |       <Component {...pageProps} />
     |        ^
  10 |       <Analytics/>
  11 |     </>
  12 |   );
error Command failed with exit code 1.

3 Replies

it never happened i really don't understand
and i didn't updated anything related to next
up