-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add React ^17.0.0 as peer dependency to support Gatsby v3 and "gatsby-plugin-netlify-cms": "^5.0.0" #5111
Comments
"gatsby-plugin-netlify-cms": "^5.0.0"
Hi @erezrokah, I would like to work on this. How should I go about implementing this? 😄 |
Hi @BA1RY thanks. I would first update all the direct and peer dependencies in all the monorepo packages and see what breaks :) Updating React might require updating other dependencies as well. Finally this should probably be under a major version release since it's a breaking change so we would need to see if we want to include anything else under that release (maybe an emotion + slate upgrade + dropping immutable). |
@erezrokah So did you mean I should update all the direct and peer dependencies for all packages in https://github.com/netlify/netlify-cms/tree/master/packages to React 17? Please correct me if I'm wrong. |
💯 You're correct - that would be the first step |
@erezrokah Hey, I don't mean to be rude but, when is this going to be fixed? I can't use netlify cms with [email protected] and I don't want to downgrade react to v16 because if I do, I will have to downgrade a lot of dependencies of my project and it would be just too much hassle. Is there a workaround of sorts? |
Hi @arpitdalal, the CMS is a community project so the best way to fix this is via a contribution. |
@BA1RY, I think we could unblock users without having to do a breaking change. As the original issue suggests we can start by updating Please let me know if you'd like to start with that. |
@erezrokah Sure, understood. I'll make the required changes. |
Hi @erezrokah , I've made a PR according to your instructions. Made the changes for required packages inside https://github.com/netlify/netlify-cms/tree/master/packages. Please have a look at it. Thanks |
Using the workaround I get: |
Same issue here using |
We are also facing same issue
|
Can confirm the issue. |
@erezrokah How should I go about fixing this? |
Remove ^ in your plugin version, then npm install and you server would run
without errors
On Fri, 30 Apr 2021 at 11:23 PM, Shashank Bairy R ***@***.***> wrote:
@erezrokah <https://github.com/erezrokah> How should I go about fixing
this?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5111 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSEYMKXDLX247JOJFFYCO3TLLVBTANCNFSM4ZFCOERQ>
.
--
Warm Regards,
Munawar
|
Thanks @munwr, that surely solves the above error. 😃 |
FYI, we released Can you please verify those versions solve the issue? Once the fix is verified we'll do an official release |
Hi @erezrokah , it's working for me. Used |
Hi @BA1RY, you should be able to install them without the |
Hi @erezrokah , Just checked. It works with just |
I can confirm that it works now. |
Thanks @BA1RY for taking this on and everyone else that tested it. Please comment it upgrading to the latest version doesn't solve it. |
I tried using yarn add [email protected] [email protected] and it worked! The problem is that now i'm using yarn and npm together. Does anyone have any thoughts on how to solve this issue? |
run npm install --legacy-peer-deps and upload your package-lock.json file too it will solve the dependency error ... I have tried it on netlify |
Is anyone else encountering this issue?
It seems as though netlify-cms-app is depending on netlify-cms-core which is depending on react-split-pane -- which expects v16 while I'm on v17. I've never seen a sub-dependency depend on my top-level app's peer dependency How is this solved? |
Describe the bug
With the release of Gatsby v3 and
"gatsby-plugin-netlify-cms": "^5.0.0"
the move to React 17 has been made.netlify-cms-app
however requires React 16 as peer dependency. This is a request to add React 17.To Reproduce
gatsby-plugin-netlify-cms": "^5.0.0",
and"netlify-cms-app": "^2.14.29"
to yourpackage.json
npm install
Expected behavior
Current workaround
Use the npm
--legacy-peer-deps
flag and install bynpm install --legacy-peer-deps
The text was updated successfully, but these errors were encountered: