Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type error after react version update #42

Open
nam-truong-le opened this issue Dec 10, 2023 · 2 comments
Open

Type error after react version update #42

nam-truong-le opened this issue Dec 10, 2023 · 2 comments

Comments

@nam-truong-le
Copy link

Hi, I'm getting this build error after update react from "@types/react": "18.2.23" to "@types/react": "18.2.43":

Type error: 'MuiImage' cannot be used as a JSX component.
  Its type 'FC<MuiImageProps>' is not a valid JSX element type.
    Type 'FunctionComponent<MuiImageProps>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
      Type 'import("/home/runner/work/shop-app/shop-app/node_modules/@types/react-dom/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.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'.

Can you have a look? Thank you.

@gabrielbuii
Copy link

I am facing the same issue. :(

@HunteRoi
Copy link

@benmneb is there a plan regarding this issue with @types/mui-image please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants