Have you read the Contributing Guidelines on issues?
Prerequisites
Description
It will break when using Docusaurus v2.3 and React 18 with Tabs, when yarn building.
[ERROR] Docusaurus server-side rendering could not render static page with path /docs/in
tro.
Error: Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.
[ERROR] Unable to build website for locale en.
[ERROR] Error: Failed to compile with errors.
at /sandbox/node_modules/@docusaurus/core/lib/webpack/utils.js:180:24
at /sandbox/node_modules/webpack/lib/MultiCompiler.js:554:14
at processQueueWorker (/sandbox/node_modules/webpack/lib/MultiCompiler.js:491:6)
at processTicksAndRejections (node:internal/process/task_queues:78:11)
[INFO] Docusaurus version: 2.3.0
Node version: v16.15.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Reproducible demo
https://codesandbox.io/s/hungry-hodgkin-2z1jdc
Steps to reproduce
- Install a fresh Docusaurus 2.3
yarn add react@18 react-dom@18
- Add the following:
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
<Tabs>
<TabItem value="option 1" label="option 1">
1
</TabItem>
<TabItem value="option 2" label="option 2">
2
</TabItem>
</Tabs>
yarn dev works. yarn build fails.
Expected behavior
The build should not fail.
Actual behavior
The build fails.
Your environment
Self-service
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
It will break when using Docusaurus v2.3 and React 18 with Tabs, when
yarn building.Reproducible demo
https://codesandbox.io/s/hungry-hodgkin-2z1jdc
Steps to reproduce
yarn add react@18 react-dom@18yarn devworks.yarn buildfails.Expected behavior
The build should not fail.
Actual behavior
The build fails.
Your environment
Self-service