We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The BrowserOnly component returns undefined instead of null, which causes React to throw an error during a production build:
BrowserOnly
undefined
null
Error: Minified React error #152; visit https://reactjs.org/docs/error-decoder.html?invariant=152&args[]=BrowserOnly for the full message or use the non-minified dev environment for full errors and additional helpful warnings.Error: Minified React error #152; visit https://reactjs.org/docs/error-decoder.html?invariant=152&args[]=BrowserOnly for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
This was changed in #2976.
Yes
Use BrowserOnly as suggested:
<BrowserOnly>{() => <Foo {...props} />}</BrowserOnly>
and run a production build of docusaurus.
The text was updated successfully, but these errors were encountered:
Thanks, totally agree: #3149
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
🐛 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: