Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Fix Uncaught TypeError: Cannot read property 'nodeType' of null at ed… #2330

Closed
wants to merge 1 commit into from

Conversation

koistya
Copy link
Contributor

@koistya koistya commented Feb 23, 2020

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrkev has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit that referenced this pull request Mar 24, 2020
Summary:
#2330 broke the build (_sigh_). CI was broken for a while, so it wasn't immediately obvious too. Internally, we have supported optional chaining for a while, so importing to Phabricator didn't surface the error either.

We need a babel transform for optional chaining.

## Test plan.

Build draft. Build succeeds. Open one of the examples. It works.
Pull Request resolved: #2363

Reviewed By: creedarky

Differential Revision: D20632298

Pulled By: mrkev

fbshipit-source-id: 7a591c376330ee31bac5546a765920833b6bac00
@facebook-github-bot
Copy link

@mrkev merged this pull request in db3216d.

@koistya koistya deleted the patch-1 branch March 25, 2020 11:43
facebook-github-bot pushed a commit that referenced this pull request Mar 31, 2020
Summary:
**Summary**

Turns out the optional chaining PR (#2330) also broke flow. We should run a flow check automatically before we build, not just strip the types.

**Test Plan**

`flow .`
Pull Request resolved: #2369

Reviewed By: claudiopro

Differential Revision: D20680346

Pulled By: mrkev

fbshipit-source-id: c30392a4e8084521c7e66f303fbc5f4832866e98
vilemj-Viclick pushed a commit to kontent-ai/draft-js that referenced this pull request Jul 16, 2020
facebookarchive#2330)

Summary:
facebookarchive#2204
Pull Request resolved: facebookarchive#2330

Reviewed By: claudiopro

Differential Revision: D20582792

Pulled By: mrkev

fbshipit-source-id: d96beaa1617ef82ba5663637f5daad254d9b17f7
vilemj-Viclick pushed a commit to kontent-ai/draft-js that referenced this pull request Jul 16, 2020
Summary:
facebookarchive#2330 broke the build (_sigh_). CI was broken for a while, so it wasn't immediately obvious too. Internally, we have supported optional chaining for a while, so importing to Phabricator didn't surface the error either.

We need a babel transform for optional chaining.

## Test plan.

Build draft. Build succeeds. Open one of the examples. It works.
Pull Request resolved: facebookarchive#2363

Reviewed By: creedarky

Differential Revision: D20632298

Pulled By: mrkev

fbshipit-source-id: 7a591c376330ee31bac5546a765920833b6bac00
vilemj-Viclick pushed a commit to kontent-ai/draft-js that referenced this pull request Jul 16, 2020
Summary:
**Summary**

Turns out the optional chaining PR (facebookarchive#2330) also broke flow. We should run a flow check automatically before we build, not just strip the types.

**Test Plan**

`flow .`
Pull Request resolved: facebookarchive#2369

Reviewed By: claudiopro

Differential Revision: D20680346

Pulled By: mrkev

fbshipit-source-id: c30392a4e8084521c7e66f303fbc5f4832866e98
alicayan008 pushed a commit to alicayan008/draft-js that referenced this pull request Jul 4, 2023
…… (#2330)

Summary:
facebookarchive/draft-js#2204
Pull Request resolved: facebookarchive/draft-js#2330

Reviewed By: claudiopro

Differential Revision: D20582792

Pulled By: mrkev

fbshipit-source-id: d96beaa1617ef82ba5663637f5daad254d9b17f7
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants