Skip to content

React 18 incompatibility #1931

@MartinHajducik

Description

@MartinHajducik

Describe the bug

Hi All,

I tried to create new react project and install jsonforms as per https://jsonforms.io/docs/tutorial . During step 2 I am getting following error

npm install --save @jsonforms/core
npm install --save @jsonforms/react

PS C:_test\javascript\react18_jsonforms> npm install --save @jsonforms/react
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^18.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.12.0 || ^17.0.0" from @jsonforms/[email protected]
npm ERR! node_modules/@jsonforms/react
npm ERR! @jsonforms/react@"*" 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.

Expected behavior

npm install --save @jsonforms/react is expected to be compatible.

Steps to reproduce the issue

  1. npx create-react-app react18_jsonforms
  2. npm install --save @jsonforms/core
  3. npm install --save @jsonforms/react
  4. See error

Screenshots

No response

In which browser are you experiencing the issue?

Chrome

Framework

React

RendererSet

Material

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions