-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
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)
Perhaps there is way around this but it seems is very likely that the CMS react version is behind my nextjs