netlify-cms-app fails to install with react 17 as version 6 of react-aria-menubutton in incompatible with react 17
See original GitHub issueDescribe the bug
When installing netlify-cms-app with react 17 the install fails with the following error:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR! peer react@"17.0.2" from react-dom@17.0.2
npm ERR! node_modules/react-dom
npm ERR! react-dom@"^17.0.2" from the root project
npm ERR! peer react-dom@"^16.8.4 || ^17.0.0" from netlify-cms-app@2.15.6
npm ERR! node_modules/netlify-cms-app
npm ERR! netlify-cms-app@"*" from the root project
npm ERR! 8 more (netlify-cms-widget-date, ...)
npm ERR! react@"^17.0.2" from the root project
npm ERR! 38 more (netlify-cms-app, @emotion/core, @emotion/styled, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"0.14.x || ^15.0.0 || ^16.0.0" from react-aria-menubutton@6.3.0
npm ERR! node_modules/netlify-cms-ui-default/node_modules/react-aria-menubutton
npm ERR! react-aria-menubutton@"^6.0.0" from netlify-cms-ui-default@2.13.1
npm ERR! node_modules/netlify-cms-ui-default
npm ERR! netlify-cms-ui-default@"^2.13.1" from netlify-cms-app@2.15.6
npm ERR! node_modules/netlify-cms-app
npm ERR! netlify-cms-app@"*" from the root project
npm ERR! 23 more (netlify-cms-backend-azure, ...)
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!
It seems like react-aria-menubutton
in netlify-cms-ui-default
needs to be upgraded to version 7.0.1 see: https://github.com/davidtheclark/react-aria-menubutton/issues/140
To Reproduce
Run npm init -y && npm i react react-dom && npm i netlify-cms-app
in an empty directory.
See Error
Expected behavior
netlify-cms-app
installs without having to use --legacy-peer-deps
Screenshots
NA
Applicable Versions:
- Netlify CMS version: 2.15.6
- Git provider: NA
- OS: Arch Linux
- Browser version NA
- NPM version: 7.12.1
- Node.JS version: 16.1.0
CMS configuration
NA
Additional context
Seems like a dependency that didn’t get updated while fixing https://github.com/netlify/netlify-cms/issues/5111
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:19 (6 by maintainers)
Top Results From Across the Web
Unable to deploy my react app
The error is a peer dependency conflict relating to versions of react, which provides guidance on how you can attempt to resolve it:...
Read more >Our netlify-cms app suddenly stopped building
Hi, A few days ago our app suddenly stopped building. The error seems to be related to Yarn, but it is strange because...
Read more >Nextjs Netlify CMS Starter Failing
Hi I am trying to integrated the Next.js CMS starter template here: The app shows the following message, is anyone else having these...
Read more >Error being thrown by gatsby-plugin-netlify-cms
Did you upgrade your app to use React v18 recently? I updated to v18 and encountered the same error, went back to v17...
Read more >Api_error: entries_failure - Netlify CMS
I have a site set up for a friend, amberley-farmers-market.netlify.app, with Netlify CMS, which has been working fine for several months, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Looks great! I hope you find it useful and that I didn’t leave anything out of the original work.
@erezrokah Sounds great! I’m working on that right now in this fork https://github.com/LuisOsta/netlify-cms based on the version created by @JeremyGrieshop.
Btw Jeremy let me know if the attribution I included in the commit looks good to you (I included the README and a link to your repository)