Agora-RTC-React icon indicating copy to clipboard operation
Agora-RTC-React copied to clipboard

Error while deploying on vercel

Open soybeins opened this issue 2 years ago • 0 comments

Conflict while building. Next.js with react version @18.2.0.

In the meantime I used a temporary fix npm i agora-rtc-react --legacy-peers-deps. Is this advisable?

16:12:35.133 | npm ERR! code ERESOLVE
16:12:35.136 | npm ERR! ERESOLVE could not resolve
16:12:35.136 | npm ERR!
16:12:35.137 | npm ERR! While resolving: [email protected]
16:12:35.137 | npm ERR! Found: [email protected]
16:12:35.137 | npm ERR! node_modules/react
16:12:35.137 | npm ERR!   react@"^18.2.0" from the root project
16:12:35.137 | npm ERR!   peer react@"^16 \|\| ^17 \|\| ^18" from @headlessui/[email protected]
16:12:35.137 | npm ERR!   node_modules/@headlessui/react
16:12:35.137 | npm ERR!     @headlessui/react@"^1.7.10" from the root project
16:12:35.138 | npm ERR!   10 more (@heroicons/react, @react-oauth/google, next, react-dom, ...)
16:12:35.138 | npm ERR!
16:12:35.138 | npm ERR! Could not resolve dependency:
16:12:35.138 | npm ERR! peer react@"^16.8.0 \|\| ^17" from [email protected]
16:12:35.138 | npm ERR! node_modules/agora-rtc-react
16:12:35.138 | npm ERR!   agora-rtc-react@"github:AgoraIO-Community/agora-rtc-react#v1.0.1" from the root project
16:12:35.138 | npm ERR!
16:12:35.138 | npm ERR! Conflicting peer dependency: [email protected]
16:12:35.138 | npm ERR! node_modules/react
16:12:35.138 | npm ERR!   peer react@"^16.8.0 \|\| ^17" from [email protected]
16:12:35.138 | npm ERR!   node_modules/agora-rtc-react
16:12:35.139 | npm ERR!     agora-rtc-react@"github:AgoraIO-Community/agora-rtc-react#v1.0.1" from the root project

soybeins avatar Feb 28 '23 08:02 soybeins