ReactJS - Error al importar react-date-range

 
Vista:
sin imagen de perfil

Error al importar react-date-range

Publicado por German (1 intervención) el 10/04/2023 13:18:35
Cuando importo react-date-range me salen todos estos errores y no puedo continuar con el proyecto

npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @material-ui/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@"^18.0.0" from @testing-library/[email protected]
npm ERR! node_modules/@testing-library/react
npm ERR! @testing-library/react@"^13.4.0" from the root project
npm ERR! peer react@"^18.2.0" from [email protected]
npm ERR! node_modules/react-dom
npm ERR! peer react-dom@"^18.0.0" from @testing-library/[email protected]
npm ERR! node_modules/@testing-library/react
npm ERR! @testing-library/react@"^13.4.0" from the root project
npm ERR! peer react-dom@">=16.8" from [email protected]
npm ERR! node_modules/react-router-dom
npm ERR! react-router-dom@"^6.9.0" from the root project
npm ERR! 2 more (react-transition-group, the root project)
npm ERR! 6 more (react-router, react-router-dom, react-scripts, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! @material-ui/core@"^4.12.4" 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!
npm ERR! For a full report see:
npm ERR! C:\Users\geelm\AppData\Local\npm-cache\_logs\2023-04-10T11_07_55_786Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\geelm\AppData\Local\npm-cache\_logs\2023-04-10T11_07_55_786Z-debug-0.log
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

Solución

Publicado por angie (1 intervención) el 25/04/2023 16:42:35
Para encontrar la solución a este y otros erroes, te invito a escuhar este podcast https://open.spotify.com/show/5DHIrbP878LS3fjaSryHxe
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar