Skip to content
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

NetlfyCMS requires updating to React 18 to work in production with latest Nextjs #6679

Closed
nolafs opened this issue Feb 2, 2023 · 3 comments
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@nolafs
Copy link

nolafs commented Feb 2, 2023

Is your feature request related to a problem? Please describe.

NetlifyCMS does not work with latest Nextjs due to being above react 17

Describe the solution you'd like

I managed getting the cms to work locally with an error but it was working perfectly fine. By adding the following to the package.json

 "override": {
    "react": "^18.2.0",
    "@types/react": "^18.0.25",
    "react-dom": "^18.2.0"
  },

However when deployed live as production build, cms is covered by an 'Application error: a client-side exception has occurred (see the browser console for more information)'.

I presume it is same error I am getting during development. Is just in production, it does let me get away with it.

Unhandled Runtime Error
TypeError: Cannot read properties of undefined (reading 'default')

Call Stack
default
../node_modules/next/dist/shared/lib/dynamic.js (69:21)

error

Perhaps there is way around this but it seems is very likely that the CMS react version is behind my nextjs

@nolafs nolafs added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Feb 2, 2023
@nolafs
Copy link
Author

nolafs commented Feb 21, 2023

Seems the netlify cms project is dead. Anybody facing then same issue. You can try https://github.com/StaticJsCMS/static-cms.

@radenpioneer
Copy link

FYI, they are transferring ownership of NetlifyCMS to another company: https://www.netlify.com/blog/netlify-cms-to-become-decap-cms/

@martinjagodic
Copy link
Member

Closing in favor of #6499

@martinjagodic martinjagodic closed this as not planned Won't fix, can't repro, duplicate, stale Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

No branches or pull requests

3 participants