I am using React JS and Next JS to create a website. Currently, I have this in my terminal when I try to do npm install.
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error react@"^19.0.0-rc-69d4b800-20241021" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@">=16.8.0" from @emotion/[email protected]
npm error node_modules/@emotion/react
npm error @emotion/react@"^11.13.5" from the root project
As you can see, there is an error with the @emotion/react package I downloaded due to using MUI. However, it says that it requires react >= 16.8.0, and I have version 19 which is greater than 16. Am I understanding the error message wrong? How can I fix this error?