-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support React 17 #4165
Comments
Yes definitively, but it's not so simple. We use react-loadable as a core lib that does not support React 17. As the lib is not very maintained, we should likely migrate to loadable-components, or create our own fork of react-loadable (probably the simplest solution). Related to #3841 |
Also seems related to #3617. |
I don’t really understand how this issues is related to Docusaurus in your case, because your site is not place in separate package? As for |
@lex111 it's because we use Lerna to manage the repo and the website (using Docusaurs) has a playground, that imports the packages. To make it work, we either have to have the same versions everywhere or install non-local (npm) versions of the packages. In this case, we lose the functionality to develop the website using local packages completely. |
It accepts any React as a dependency, but this is quite unsafe in practice. componentWillMount should have been completely removed in React 17, but it seems the removal has been postponed to React 18, so my assumption was wrong and we are lucky this time! (cf my comment: #4218 (comment)) I think we can safely upgrade to React 17, but we likely won't be lucky to upgrade to React 18 without removing/fixing react-loadable |
@slorber: any chance for a release anytime soon? |
@radekmie we'll release soon, maybe next week. In the meantime the (it's not so risky to use IMHO. If we release it's basically just putting a release tag on an existing canary release) |
🚀 Feature
Support for React 17. Please note that I'm not requesting a migration, but rather check, whether Docusaurus 2 works with React 17 and if so, update
peerDependencies
version respectively, most probably to^17.0.0 || ^16.8.4
.Have you read the Contributing Guidelines on issues?
Yes.
Motivation
None of the breaking changes seem to affect Docusarus in an unexpected way, therefore I guess it should be quick and easy.
My goal is to update
uniforms
repo to use React 17 and Docusaurus is the last incompatible package.The text was updated successfully, but these errors were encountered: