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

Fix tex and universal examples crash because of different React versions (#1756) #1931

Conversation

thibaudcolas
Copy link
Contributor

Summary

Fixes #1756, and #1930. The tex and universal examples have their own dependencies, and relied on a different version of react/react-dom from the one defined for Draft.js. This caused a JS error when running the examples.

I have also added the missing lockfile for the universal example.

Test Plan

  • Make a clean copy of the project
  • For both examples, go through the instructions to install their dependencies and build them.
  • Open the examples in a browser, and attempt to type in the editor(s)

@thibaudcolas thibaudcolas changed the title Bug/broken examples 1756 Fix tex and universal examples crash because of different React versions Nov 8, 2018
@thibaudcolas thibaudcolas changed the title Fix tex and universal examples crash because of different React versions Fix tex and universal examples crash because of different React versions (#1756) Nov 8, 2018
Copy link
Contributor

@niveditc niveditc left a comment

Choose a reason for hiding this comment

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

Looks good - thanks for fixing!

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.

@niveditc is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

jdecked pushed a commit to twitter-forks/draft-js that referenced this pull request Oct 9, 2019
…ons (facebookarchive#1756) (facebookarchive#1931)

Summary:
**Summary**

Fixes facebookarchive#1756, and facebookarchive#1930. The tex and universal examples have their own dependencies, and relied on a different version of `react`/`react-dom` from the one defined for Draft.js. This caused a JS error when running the examples.

I have also added the missing lockfile for the universal example.

**Test Plan**

- Make a clean copy of the project
- For both examples, go through the instructions to install their dependencies and build them.
- Open the examples in a browser, and attempt to type in the editor(s)
Pull Request resolved: facebookarchive#1931

Differential Revision: D13019619

fbshipit-source-id: 3451737816a5ba9fe283cb65b285fd5fb5e5532a
alicayan008 pushed a commit to alicayan008/draft-js that referenced this pull request Jul 4, 2023
…ons (#1756) (#1931)

Summary:
**Summary**

Fixes #1756, and #1930. The tex and universal examples have their own dependencies, and relied on a different version of `react`/`react-dom` from the one defined for Draft.js. This caused a JS error when running the examples.

I have also added the missing lockfile for the universal example.

**Test Plan**

- Make a clean copy of the project
- For both examples, go through the instructions to install their dependencies and build them.
- Open the examples in a browser, and attempt to type in the editor(s)
Pull Request resolved: facebookarchive/draft-js#1931

Differential Revision: D13019619

fbshipit-source-id: 3451737816a5ba9fe283cb65b285fd5fb5e5532a
aforismesen added a commit to aforismesen/draft-js that referenced this pull request Jul 12, 2024
…ons (#1756) (#1931)

Summary:
**Summary**

Fixes #1756, and #1930. The tex and universal examples have their own dependencies, and relied on a different version of `react`/`react-dom` from the one defined for Draft.js. This caused a JS error when running the examples.

I have also added the missing lockfile for the universal example.

**Test Plan**

- Make a clean copy of the project
- For both examples, go through the instructions to install their dependencies and build them.
- Open the examples in a browser, and attempt to type in the editor(s)
Pull Request resolved: facebookarchive/draft-js#1931

Differential Revision: D13019619

fbshipit-source-id: 3451737816a5ba9fe283cb65b285fd5fb5e5532a
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.

3 participants