Skip to content

DecapCMS 3.0/GatsbyJS React 18 error #6883

@Isaac-Tait

Description

@Isaac-Tait

Congratulations on the DecapCMS 3.0 release!

Following the install guidelines when I run npm install --save decap-cms-app gatsby-plugin-netlify-cms I get the following error message:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: royal-ridges-retreat@0.1.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   react@"^18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.4 || ^17.0.0" from decap-cms-app@3.0.3
npm ERR! node_modules/decap-cms-app
npm ERR!   decap-cms-app@"*" from the root project
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.

My repo is fully up to date, if I try to downgrade React to 17 then I get cascading error messages. Going down that rabbit hole is just too much work.

Describe the bug
DecapCMS appears to not be compatible with React 18

Expected behavior
When I install DecapCMS it should be compatible with React18

#6544

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugcode to address defects in shipped code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions