GithubHelp home page GithubHelp logo

Comments (5)

ChristopherTrimboli avatar ChristopherTrimboli commented on May 2, 2024 1

this is legit, just setup new repo, even using new v14 cache provider, I get same:

image

Expression produces a union type that is too complex to represent.ts(2590)

from material-ui.

mj12albert avatar mj12albert commented on May 2, 2024

@shakib77 In your snippet, you have repeated the src prop twice in Avatar which is probably the cause

<Avatar
  alt={'profile image'}
  src={'/images/dummy-logo.svg'}
  sx={{
    width: 'auto',
    height: '86px',
    '& .MuiAvatar-img': {
      objectFit: 'contain',
    },
  }}
  src={vendorProfileData?.org_logo_path} // <---- this looks like the problem 💥 
  variant={'square'}
/>

Otherwise I cannot reproduce it: https://codesandbox.io/s/https-github-com-mui-material-ui-issues-39796-prm932?file=/src/App.tsx

from material-ui.

shakib77 avatar shakib77 commented on May 2, 2024

@shakib77 In your snippet, you have repeated the src prop twice in Avatar which is probably the cause

<Avatar
  alt={'profile image'}
  src={'/images/dummy-logo.svg'}
  sx={{
    width: 'auto',
    height: '86px',
    '& .MuiAvatar-img': {
      objectFit: 'contain',
    },
  }}
  src={vendorProfileData?.org_logo_path} // <---- this looks like the problem 💥 
  variant={'square'}
/>

Otherwise I cannot reproduce it: https://codesandbox.io/s/https-github-com-mui-material-ui-issues-39796-prm932?file=/src/App.tsx

@mj12albert It is my mistake in Avatar component but I am facing this all over in box component if i add any properties.

from material-ui.

mj12albert avatar mj12albert commented on May 2, 2024

@mj12albert It is my mistake in Avatar component but I am facing this all over in box component if i add any properties.

Could you please provide an updated repro? You can fork this template: https://mui.com/r/issue-template-latest

from material-ui.

github-actions avatar github-actions commented on May 2, 2024

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

from material-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.