Skip to content

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

@nolafs

Description

@nolafs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurecode contributing to the implementation of a feature and/or user facing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions