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.

draft-js fails flow 0.38.0

See original GitHub issue

new flow gives following errors:

node_modules/draft-js/lib/expandRangeToStartOfLine.js.flow:34 34: document.body.appendChild(div); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call of method appendChild. Method cannot be called on possibly null value 34: document.body.appendChild(div); ^^^^^^^^^^^^^ null

node_modules/draft-js/lib/expandRangeToStartOfLine.js.flow:36 36: document.body.removeChild(div); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call of method removeChild. Method cannot be called on possibly null value 36: document.body.removeChild(div); ^^^^^^^^^^^^^ null

node_modules/draft-js/lib/getSafeBodyFromHTML.js.flow:29 29: doc.documentElement.innerHTML = html; ^^^^^^^^^ property innerHTML. Property cannot be assigned on possibly null value 29: doc.documentElement.innerHTML = html; ^^^^^^^^^^^^^^^^^^^ null

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:9
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
existentialismcommented, Jan 28, 2017

document.body and document.documentElement are nullable after https://github.com/facebook/flow/pull/3127

0reactions
riseremicommented, Apr 17, 2017

I agree with you. These are annoying warnings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues and Pitfalls - Draft.js
This article addresses some known issues with the Draft editor framework, as well as some common pitfalls that we have encountered while ...
Read more >
Correct way to setup Flow with draft-js - Stack Overflow
The reason why Flow doesn't work with draft-js when import it as 'draft-js' is that: draft-js' main file is lib/Draft.
Read more >
https://docs.cloudera.com/documentation/other/shar...
However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. b. Where Your right...
Read more >
https://distrowatch.com/resource/dragonflybsd/drag...
... flowgger-0.2.10_8.pkg flowgrind-0.8.2_1.pkg flow-tools-0.68.6_4.pkg ... libgpc-2.32.pkg libgpg-error-1.42.pkg libgphoto2-2.5.26.pkg libgpkg-0.9.18_3.pkg ...
Read more >
draftjs-utils - npm Package Health Analysis - Snyk
Learn more about draftjs-utils: package health score, popularity, security, maintenance, versions and more.
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