rethinkdb / rethinkdb-admin

RethinkDB Next Generation Admin UI
Apache License 2.0
14 stars 7 forks source link

Node version #20

Closed bencz closed 1 year ago

bencz commented 2 years ago

I just cloned the 'main' branch, when I execute the npm install i got some erros:

rethinkdb-admin$ npm install
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: react-event-listener@0.6.6
npm WARN Found: react@18.2.0
npm WARN node_modules/react
npm WARN   dev react@"^18.2.0" from the root project
npm WARN   17 more (@emotion/react, @emotion/styled, @mui/base, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.3.0" from react-event-listener@0.6.6
npm WARN node_modules/react-event-listener
npm WARN   react-event-listener@"^0.6.0" from react-swipeable-views-utils@0.14.0
npm WARN   node_modules/react-swipeable-views-utils
npm WARN
npm WARN Conflicting peer dependency: react@16.14.0
npm WARN node_modules/react
npm WARN   peer react@"^16.3.0" from react-event-listener@0.6.6
npm WARN   node_modules/react-event-listener
npm WARN     react-event-listener@"^0.6.0" from react-swipeable-views-utils@0.14.0
npm WARN     node_modules/react-swipeable-views-utils
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-swipeable-views@0.14.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   dev react@"^18.2.0" from the root project
npm ERR!   peer react@">=16.8.0" from @emotion/react@11.9.3
npm ERR!   node_modules/@emotion/react
npm ERR!     dev @emotion/react@"^11.9.3" from the root project
npm ERR!     peer @emotion/react@"^11.0.0-rc.0" from @emotion/styled@11.9.3
npm ERR!     node_modules/@emotion/styled
npm ERR!       dev @emotion/styled@"^11.9.3" from the root project
npm ERR!       3 more (@mui/material, @mui/styled-engine, @mui/system)
npm ERR!     3 more (@mui/material, @mui/styled-engine, @mui/system)
npm ERR!   16 more (@emotion/styled, @mui/base, @mui/icons-material, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^15.3.0 || ^16.0.0 || ^17.0.0" from react-swipeable-views@0.14.0
npm ERR! node_modules/react-swipeable-views
npm ERR!   dev react-swipeable-views@"^0.14.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react@17.0.2
npm ERR! node_modules/react
npm ERR!   peer react@"^15.3.0 || ^16.0.0 || ^17.0.0" from react-swipeable-views@0.14.0
npm ERR!   node_modules/react-swipeable-views
npm ERR!     dev react-swipeable-views@"^0.14.0" 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/bencz/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/bencz/.npm/_logs/2022-08-23T22_36_31_290Z-debug-0.log

To Reproduce Steps to reproduce the behavior:

System info

atassis commented 1 year ago

There are some issues with packages we use, I had an idea to rewrite them from scratch, because they are not updated for a long time. My advise for now is to use --legacy-peer-deps flag

atassis commented 1 year ago

Maybe it would be better to use less sophisticated tabs for now, I'll even remove this package later. Thanks for an issue!

atassis commented 1 year ago

FIxed an issue