[Issue] Mixnet Explorer - cannot build #4597
Labels
bug
Something isn't working
bug-needs-triage
A bug that needs discussing and triage
needs-triage
qa
Quality Assurance
Describe the issue
I am trying to build mixnet explorer but getting an error. It seems the problem is install MUI with react. It seems like mui/styles is not compatible with React 18 (mui/material-ui#32074 and https://stackoverflow.com/questions/74255797/cannot-install-mui-styles-in-react). @mui/styles is deprecated now and should be migrated to @mui/system (https://mui.com/system/styles/basics/)
Expected behaviour
I expect the build to complete without any errors
Stack Traces
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @nym/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^18.2.0" from @nym/[email protected]
npm ERR! explorer
npm ERR! @nym/[email protected]
npm ERR! node_modules/@nym/network-explorer
npm ERR! workspace explorer from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^17.0.0" from @mui/[email protected]
npm ERR! node_modules/@mui/styles
npm ERR! @mui/styles@"^5.0.1" from @nym/[email protected]
npm ERR! explorer
npm ERR! @nym/[email protected]
npm ERR! node_modules/@nym/network-explorer
npm ERR! workspace explorer 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.
Steps to Reproduce
Which area of Nym were you using?
network-explorer
Additional context
debug.log
Debug log is attached
I have also tried to remove mui/styles dependency but got the following error:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @nym/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^18.2.0" from @nym/[email protected]
npm ERR! explorer
npm ERR! @nym/[email protected]
npm ERR! node_modules/@nym/network-explorer
npm ERR! workspace explorer from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^17.0.1" from [email protected]
npm ERR! node_modules/react-identicons
npm ERR! react-identicons@"^1.2.5" from @nym/[email protected]
npm ERR! explorer
npm ERR! @nym/[email protected]
npm ERR! node_modules/@nym/network-explorer
npm ERR! workspace explorer from the root project
npm ERR!
It seems like there are multiple dependencies which are struggling with React 18.
The text was updated successfully, but these errors were encountered: