Describe the bug
There is a conflicting peer dependency error involving react, react-dom, and react-test-renderer when running npm install:
react and react-dom are specified as 18.2.0 or higher in package.json.
react-test-renderer is specified as ^18.3.1 in package.json.
When npm install is run with react at version 18.2.0, it throws a peer dependency conflict error. However, running the same command with react already installed at 18.3.1 does not result in this error.
Steps to Reproduce
- Set
react (and react-dom) version to 18.2.0 in package.json.
- Ensure
react-test-renderer version is set to ^18.3.1.
- Run
npm install.
- Observe the conflicting peer dependency error.
Expected behavior
Installation should succeed without a peer dependency conflict if compatible versions are set in package.json.
Additional context
The conflicting dependency versions are:
react, react-dom: 18.2.0
react-test-renderer: ^18.3.1
Please review and align the version numbers as needed to resolve this issue.
Screenshots

Describe the bug
There is a conflicting peer dependency error involving
react,react-dom, andreact-test-rendererwhen runningnpm install:reactandreact-domare specified as18.2.0or higher inpackage.json.react-test-rendereris specified as^18.3.1inpackage.json.When
npm installis run withreactat version 18.2.0, it throws a peer dependency conflict error. However, running the same command withreactalready installed at 18.3.1 does not result in this error.Steps to Reproduce
react(andreact-dom) version to18.2.0inpackage.json.react-test-rendererversion is set to^18.3.1.npm install.Expected behavior
Installation should succeed without a peer dependency conflict if compatible versions are set in
package.json.Additional context
The conflicting dependency versions are:
react,react-dom:18.2.0react-test-renderer:^18.3.1Please review and align the version numbers as needed to resolve this issue.
Screenshots