You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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).
@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.
As for react-loadable, it implicitly supports React 17, doesn't it?
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
Activity
slorber commentedon Feb 4, 2021
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
HonkingGoose commentedon Feb 4, 2021
Also seems related to #3617.
lex111 commentedon Feb 11, 2021
I don’t really understand how this issues is related to Docusaurus in your case, because your site is not place in separate package?
https://github.com/vazco/uniforms/blob/ec5030886f0af285657583e58654b29ef280c153/packages/uniforms/package.json#L27-L29
As for
react-loadable, it implicitly supports React 17, doesn't it?https://github.com/jamiebuilds/react-loadable/blob/6201c5837b212d6244c57f3748f2b1375096beeb/package.json#L45-L47
radekmie commentedon Feb 11, 2021
@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.
slorber commentedon Feb 12, 2021
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
radekmie commentedon Feb 18, 2021
@slorber: any chance for a release anytime soon?
slorber commentedon Feb 18, 2021
@radekmie we'll release soon, maybe next week.
In the meantime the
@canarynpm dist tag will get you React 17.(it's not so risky to use IMHO. If we release it's basically just putting a release tag on an existing canary release)