@yuragms
бегинер, фулстак на базе реакта

Как решить проблему с деплоем Nextjs на vercel.com с конфликтом версий npm ERR! code ERESOLVE?

Добрый день, я новичек, пытаюсь набить руку, на next.js написал простенький интернет-магазин для резюме локально все работает. Но при деплое на vercel, вылетают ошибки связаные с конфликтами версий как я понял, гуглил не нашел как пофиксить пробовал npm i legacy-peer-deps @emotion/react and other не помогло. Может кто знает как пофиксить, или на какие версии лучше откатываться. 8:38:09.620npm ERR! code ERESOLVE

8:38:09.629npm ERR! ERESOLVE could not resolve

18:38:09.629 npm ERR!

18:38:09.629 npm ERR! While resolving: @mui/styles@5.11.13

18:38:09.630npm ERR! Found: react@18.2.0

18:38:09.630npm ERR! node_modules/react

18:38:09.630npm ERR! react@"18.2.0" from the root project

18:38:09.630npm ERR! peer react@">=16.8.0" from @emotion/react@11.10.6

18:38:09.631npm ERR! node_modules/@emotion/react

18:38:09.631npm ERR! @emotion/react@"^11.10.6" from the root project

18:38:09.631npm ERR! peer @emotion/react@"^11.0.0-rc.0" from @emotion/styled@11.10.6

18:38:09.631npm ERR! node_modules/@emotion/styled

18:38:09.631npm ERR! @emotion/styled@"^11.10.6" from the root project

18:38:09.631npm ERR! 4 more (@mui/material, @mui/styled-engine, @mui/system, notistack)

18:38:09.632npm ERR! 4 more (@mui/material, @mui/styled-engine, @mui/system, notistack)

18:38:09.632npm ERR! 16 more (@emotion/styled, ...)

18:38:09.632npm ERR!

18:38:09.632npm ERR! Could not resolve dependency:

18:38:09.632npm ERR! peer react@"^17.0.0" from @mui/styles@5.11.13

18:38:09.632npm ERR! node_modules/@mui/styles

18:38:09.632npm ERR! @mui/styles@"^5.11.13" from the root project18:38:09.632npm ERR! 18:38:09.633npm ERR! Conflicting peer dependency: react@17.0.2

18:38:09.633npm ERR! node_modules/react

18:38:09.633npm ERR! peer react@"^17.0.0" from @mui/styles@5.11.13

18:38:09.633npm ERR! node_modules/@mui/styles

18:38:09.633npm ERR! @mui/styles@"^5.11.13" from the root project

18:38:09.633npm ERR!

18:38:09.633npm ERR! Fix the upstream dependency conflict, or retry

18:38:09.633npm ERR! this command with --force, or --legacy-peer-deps

18:38:09.634npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

18:38:09.634npm ERR!

18:38:09.634npm ERR! See /vercel/.npm/eresolve-report.txt for a full report.

18:38:09.634

18:38:09.634npm ERR! A complete log of this run can be found in:

18:38:09.634npm ERR! /vercel/.npm/_logs/2023-03-16T16_38_08_749Z-debug-0.log18:38:09.655Error: Command "npm install" exited with 1

18:38:09.921BUILD_FAILED: Command "npm install" exited with 1. Вот мой package.json https://github.com/yuragms/next-amazona-ecomerce/b...
  • Вопрос задан
  • 152 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы