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
@mui/styles is not compatible with React 17. You'll have to either downgrade React or using @mui/system which is a emotion based package for runtime styling.
Steps to reproduce
Link to live example: https://github.com/jinsley8/mui-styles-issue
Steps:
npm install
npm install
errors with a dependency conflictCurrent behavior
npm install
errors out with the following error:Expected behavior
@mui/[email protected]
should be able to be installed properly along with[email protected]
.https://github.com/mui/material-ui/blob/master/packages/mui-styles/package.json
@mui/styles has the following dependencies:
Context
I'm trying to install
@mui/[email protected]
with[email protected]
. How can I overcome this error withnpm install
?It works with
bun install
andyarn install
but I need to usenpm
I have tried to install using Node v18, v20, v21 and all have to same issue.
Your environment
npx @mui/envinfo
Search keywords: dependencies,react,@mui/styles
The text was updated successfully, but these errors were encountered: