-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Closed
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its execution
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I'm using the latest version of Docusaurus.
- I have tried the
npm run clearoryarn clearcommand. - I have tried
rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages. - I have tried creating a repro with https://new.docusaurus.io.
- I have read the console error message carefully (if applicable).
Description
react-json-view-lite used in plugin-debug has not been compatible with React 19 in its peerDependencies.
To make matter worse plugin-debug does not use the latest version of it.
Reproducible demo
- https://docusaurus.new/codesandbox-ts
- Remove
node_modules yarn install
Steps to reproduce
- Update React (react, react-dom, and @types/react) to 19
- npm, yarn, or pnpm install if not done
Expected behavior
No warnings or errors
Actual behavior
Warning (or error) complaining about unmet peer dependencies on React
e.g. Yarn (Official CodeSandBox):
warning "@docusaurus/preset-classic > @docusaurus/plugin-debug > [email protected]" has incorrect peer dependency "react@^16.13.1 || ^17.0.0 || ^18.0.0".
Your environment
- Public source code:
- Public site URL:
- Docusaurus version used: 3.7.0
- Environment name and version (e.g. Chrome 89, Node.js 16.4): Node 22.12
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): Windows 11
Self-service
- I'd be willing to fix this bug myself.
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its execution