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.

'color' and 'rich' examples failing on master

See original GitHub issue

Do you want to request a feature or report a bug? bug

What is the current behavior? On current master in Chrome and Firefox, for me, I get the following error in both ‘color’ and ‘rich’ examples:

Uncaught TypeError: Cannot read property 'purgeUnmountedComponents' of undefined(…)

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/stopachka/m6z0xn4r/.

  1. Clone master
  2. npm update && npm run build
  3. Open either examples/rich/rich.html or examples/color/color.html

What is the expected behavior? They should render the examples.

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?

Draft un-released latest, in Chrome and Firefox and likely other browsers too.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tobiasandersencommented, Nov 30, 2016

I fixed this in #824 when re-adding the old (deprecated) examples, according to #816. Now all examples use the unminified version of both react and react-dom. Just let me know if that’s not correct.

1reaction
sophiebitscommented, Nov 29, 2016

Oh I see, it looks like this happens if you use minified react but unminified react-dom. Switching both to unminified also makes it work. This is related to React 15.4, not any Draft change.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Textualize/rich: Rich is a Python library for rich text ... - GitHub
Note that unlike the builtin print function, Rich will word-wrap your text to fit within the terminal width. There are a few ways...
Read more >
There are many rich minorities. So why are there no black ...
“There are a lot of people of color making strides, but a troubling racial wealth gap persists,” Lioz said. There's also history to...
Read more >
Lorde 1 The Master's Tools Will Never Dismantle the Master's ...
This is an old and primary tool of all oppressors to keep the oppressed occupied with the master's concerns. Now we hear that...
Read more >
College debt worsens the racial wealth gap
As a result, the Black-White wealth gap widens. Black college graduates have higher debt loads, on average, than White college graduates. Black ...
Read more >
Console API — Rich 12.6.0 documentation
For example, you could add a file called “console.py” to your project: ... Rich will auto-detect the appropriate color system, or you can...
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