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
From our recent attempt to use React 17 in our monorepo which also includes one Docusaurus project (currently on 2.0.0-beta.0 but we also tried 2.0.0-beta.2), these were the notes:
@docusaurus/core
There're two packages that needs to be resolved using resolutions in package.json: mini-create-react-context and react-side-effect. Both packages have a new x.x.1 version that adds a support for React 17. So far so good.
Btw, even the upgrade to Docusaurus version 2.0.0-beta.2 didn't fix the issue.
docusaurus-lunr-search
There is no official React 17 support right now. The author probably waits for an official Docusaurus v2 release.
Is supporting React 17 a goal for Docusaurus 2 release?
(I was looking for an issue that tracks React 17 support and couldn't find it so I thought I'd create this one. Hopefully it's useful for people in a situation similar to ours.)
The text was updated successfully, but these errors were encountered:
I'm sorry but we already support React 17, and there's no React 16 in our own monorepo:
lease init a new Docusaurus site and check for yourself that all our deps are using/allowing React 17.
If that's not the case (which I doubt) we can re-open, otherwise, it's more likely an issue with your monorepo/package-manager, and you might try to re-generate your lockfile.
docusaurus-lunr-search
We don't provide support for non-official plugins. If you want the plugin to update to React 17, just submit a PR and ask the owner or maintain/publish your own fork.
The author probably waits for an official Docusaurus v2 release.
I believe nobody submitted a React 17 PR yet because nobody cares as much as you do, that's all. Be the first do to that helps the community :)
Plugin authors should definitively not wait for 2.0 GA to move to React 17.
We may have a Docusaurus org someday, and maybe this popular plugin could be in the org so that I can upgrade it more easily myself, as third-party plugins from individual authors tend to not be very well maintained past the initial release excitement (general problem with open-source)
External plugins are of course of out the scope and the "issue" about @docusaurus/core and its dependencies was indeed because our lockfile had locked the older versions of deeper dependencies.
From our recent attempt to use React 17 in our monorepo which also includes one Docusaurus project (currently on
2.0.0-beta.0
but we also tried2.0.0-beta.2
), these were the notes:@docusaurus/core
resolutions
inpackage.json
:mini-create-react-context
andreact-side-effect
. Both packages have a newx.x.1
version that adds a support for React 17. So far so good.2.0.0-beta.2
didn't fix the issue.docusaurus-lunr-search
graphiql
Is supporting React 17 a goal for Docusaurus 2 release?
(I was looking for an issue that tracks React 17 support and couldn't find it so I thought I'd create this one. Hopefully it's useful for people in a situation similar to ours.)
The text was updated successfully, but these errors were encountered: