Must use --legacy-peer-deps to install when using MUI v. 6. Otherwise I get:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: frontend@1.0.0
npm ERR! Found: @mui/material@6.1.5
npm ERR! node_modules/@mui/material
npm ERR! @mui/material@"^6.1.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @mui/material@"^5.0.1" from mui-image@1.0.7
npm ERR! node_modules/mui-image
npm ERR! mui-image@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
Must use --legacy-peer-deps to install when using MUI v. 6. Otherwise I get:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: frontend@1.0.0
npm ERR! Found: @mui/material@6.1.5
npm ERR! node_modules/@mui/material
npm ERR! @mui/material@"^6.1.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @mui/material@"^5.0.1" from mui-image@1.0.7
npm ERR! node_modules/mui-image
npm ERR! mui-image@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.