TexteaInc / funix

Building web apps without manually creating widgets
http://funix.io
MIT License
99 stars 11 forks source link

unable to resolve dependency tree #32

Closed forrestbao closed 2 years ago

forrestbao commented 2 years ago

Update: When I switch back to main branch, the problem is gone.

Branch: dev

I am setting up the frontend on a new computer and got the error below upon executing npm install react-scripts:

$ npm install react-scripts
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: @textea/py-data-front@undefined
npm ERR! Found: @types/react@18.0.15
npm ERR! node_modules/@types/react
npm ERR!   @types/react@"^18.0.15" from the root project
npm ERR!   peerOptional @types/react@"^17.0.0 || ^18.0.0" from @mui/icons-material@5.8.4
npm ERR!   node_modules/@mui/icons-material
npm ERR!     @mui/icons-material@"^5.8.4" from the root project
npm ERR!     peerOptional @mui/icons-material@"^5.2.0" from @rjsf/material-ui@4.2.2
npm ERR!     node_modules/@rjsf/material-ui
npm ERR!       @rjsf/material-ui@"^4.2.2" from the root project
npm ERR!   1 more (@mui/material)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @types/react@"^16.8.6 || ^17.0.0" from @rjsf/material-ui@4.2.2
npm ERR! node_modules/@rjsf/material-ui
npm ERR!   @rjsf/material-ui@"^4.2.2" 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.
npm ERR! 
npm ERR! See /home/forrest/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/forrest/.npm/_logs/2022-08-05T16_54_32_177Z-debug-0.log
TURX commented 2 years ago

Maybe you can try yarn install to set up the project dependencies