Comments (5)
this is legit, just setup new repo, even using new v14 cache provider, I get same:
Expression produces a union type that is too complex to represent.ts(2590)
from material-ui.
@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 In your snippet, you have repeated the
src
prop twice inAvatar
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 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.
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)
- [base-ui][Number Input] Input value disappear after focus
- [joy-ui][Radio Group] Bug when the value provided is number 0 HOT 1
- [material-ui][Timeline] Not working with server-side in an App Router Next.js project HOT 3
- Icons missing from the @mui/icons-material folder
- [joy-ui] Add Upload component HOT 1
- illegal comment position
- [material-ui] The Next.js integration page could be better HOT 2
- [Tooltip] Downgrade disabled error to a warning
- [joy-ui] fontSize property on MUI Icons does not comply with TypeScript rules
- [material-ui][Switch] Can't use global theme overrides for the disabled and checked states HOT 1
- [material-ui][docs] TypeScript error on the dark mode by default guide HOT 2
- [mui-codemod] mui-replace does not update package.json as documented
- [material-ui][Select] Documentation improvement opportunities HOT 3
- [performance] 200B win opportunity, clsx/lite HOT 1
- [List][material-next] Add all List* components HOT 1
- shadcn-ui typescript issue HOT 1
- [material-ui][Container] `maxWidth` doesn't have all types HOT 2
- [material-ui][Rating] Sizes demo not working as expected HOT 7
- [joy-ui][Drawer] Add a dedicated z-index in the default theme
- [joy-ui] JoyToggleButtonGroup key not included in components type HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-ui.