Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue] Mixnet Explorer - cannot build #4597

Open
JohnSmith-PrivacyRebels opened this issue May 15, 2024 · 0 comments
Open

[Issue] Mixnet Explorer - cannot build #4597

JohnSmith-PrivacyRebels opened this issue May 15, 2024 · 0 comments
Assignees
Labels
bug Something isn't working bug-needs-triage A bug that needs discussing and triage needs-triage qa Quality Assurance

Comments

@JohnSmith-PrivacyRebels
Copy link
Contributor

JohnSmith-PrivacyRebels commented May 15, 2024

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.

@JohnSmith-PrivacyRebels JohnSmith-PrivacyRebels added bug Something isn't working bug-needs-triage A bug that needs discussing and triage needs-triage qa Quality Assurance labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bug-needs-triage A bug that needs discussing and triage needs-triage qa Quality Assurance
Projects
None yet
Development

No branches or pull requests

2 participants