question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React Editor will not install with React v17

See original GitHub issue

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: testproject@0.1.0
npm ERR! Found: react@17.0.1
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/react-editor@2.5.0
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.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
bobbuicommented, Dec 17, 2020

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

2reactions
partoneplaycommented, Jun 24, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React v17.0 – React Blog
In React 17, React will no longer attach event handlers at the document level under the hood. Instead, it will attach them to...
Read more >
React Codemirror2 does not install - Stack Overflow
When I try to install react-codemirror2 it gave an error and doesn't install in my app (my react version is @17.0.2) Why it...
Read more >
How to Install & Setup React JS On Windows - KnowledgeHut
In this tutorial, we will learn how to install React JS in Windows. ... At least one installed code Editor to test and...
Read more >
Build rich text editors in React using Draft.js and react-draft ...
Note: You may notice a warning that says “ Can't call setState on a component ” in the development mode. React shows this...
Read more >
primereact - npm
PrimeReact is an open source UI library for React featuring a rich set ... with npm npm install primereact primeicons // with yarn...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found