-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
BrowserOnly causes React error #3144
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
Comments
ianschmitz
added
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
labels
Jul 28, 2020
ianschmitz
changed the title
BrowserOnly returns undefined
BrowserOnly throws React error
Jul 28, 2020
ianschmitz
changed the title
BrowserOnly throws React error
BrowserOnly causes React error
Jul 28, 2020
Thanks, totally agree: #3149 |
Josh-Cena
removed
the
status: needs triage
This issue has not been triaged by maintainers
label
Apr 5, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug Report
The
BrowserOnly
component returnsundefined
instead ofnull
, which causes React to throw an error during a production build:This was changed in #2976.
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
Use
BrowserOnly
as suggested:and run a production build of docusaurus.
Your Environment
The text was updated successfully, but these errors were encountered: