Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Peer dependency requirements of upstream library prevents install of this library with React 17 without use of --force #418

Closed
brianbancroft opened this issue Mar 23, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@brianbancroft
Copy link

brianbancroft commented Mar 23, 2021

  • react-medium-image-zoom requires the use of React 16 (link)

To Reproduce
Steps to reproduce the behavior:
(from the command line)

  1. npx create-react-app myapp && cd myapp
  2. npm i rich-markdown-editor@latest

Expected behavior
It installs

Actual behavior
It doesn't install unless developer includes --force flag on all installs.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: react@17.0.2
(... glossing over this part for now)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.4.0" from react-medium-image-zoom@3.1.2
npm ERR! node_modules/rich-markdown-editor/node_modules/react-medium-image-zoom
npm ERR!   react-medium-image-zoom@"^3.0.16" from rich-markdown-editor@11.6.0
npm ERR!   node_modules/rich-markdown-editor
npm ERR!     rich-markdown-editor@"11.6.0" from the root project

Version
latest

Desktop (please complete the following information):

  • MacOS, node 14.16.0
@brianbancroft brianbancroft added the bug Something isn't working label Mar 23, 2021
@tommoor
Copy link
Member

tommoor commented Mar 24, 2021

#240 and #241 both necessitate upgrading this dependency too, sounds like the time is nigh.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants