Tui.editor: React Editor will not install with React v17

Created on 30 Oct 2020  Â·  5Comments  Â·  Source: nhn/tui.editor

Describe the bug

NPM gives an 'unable to resolve dependency tree' error when attempting to install the react-editor in a project that is using React v17.

To Reproduce

Steps to reproduce the behavior:

  1. Make new React app with npx create-react-app.
  2. Try to install TUI React Editor with: npm install --save @toast-ui/react-editor
  3. See the following error:
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@"^17.0.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0" from @toast-ui/[email protected]
npm ERR! node_modules/@toast-ui/react-editor
npm ERR!   @toast-ui/react-editor@"*" 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

The react-editor should install unless there is something specific to React v17 that makes that not possible until fixed.

Bug React

Most helpful comment

@seonim-ryu any update on this? React 17 is compatible with React 16 so a simple version bump will do the job.

All 5 comments

@live951 I'll check this soon and see if the wrapper can update the peer-dependent version to React 17.

@seonim-ryu any update on this? React 17 is compatible with React 16 so a simple version bump will do the job.

ping, any update in this? Highly appreciate if this will be looked at soon , as it basically block the upgrade to React 17 for the whole app.

Hi, I'm running into the same problem. Any news about this?

Now React Editor V3.0 will not install with React v16.
React Version V17 is such a stupid version, although is totally compatible with React 16.
Maybe React Editor V3.0 Support React 16. Please.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hrvoj3e picture hrvoj3e  Â·  3Comments

bricepepin picture bricepepin  Â·  3Comments

nilhave picture nilhave  Â·  3Comments

cyberjacob picture cyberjacob  Â·  4Comments

oguera picture oguera  Â·  3Comments