-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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 executiondifficulty: advancedIssues that are complex, e.g. large scoping for long-term maintainability.Issues that are complex, e.g. large scoping for long-term maintainability.
Description
🐛 Bug Report
Attempting to use Docusaurus v2 with Yarn v2 (berry).
As soon as i run yarn build the build explodes with dependency errors from yarn v2.
Lots of peer dependencies aren't specified and yarn v2 doesn't know what to do.
Example error
Error: @docusaurus/core tried to access @docusaurus/plugin-content-blog, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Interesting that this doesn't happen in yarn v1, but it seems to be due to no dependencies/peer dependencies being specified for the various docusaurus packages.
Steps to reproduce
- Install/have yarn v2 as the package manager for project
- Install docusaurus v2
- run
yarn build.
I've tried to install every dependency yarn says it can't find, but it's an endless process, and i still haven't managed to get a build to work.
Basically, right now, docusaurus v2 is not compatible with yarn v2 😢
Reactions are currently unavailable
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 executiondifficulty: advancedIssues that are complex, e.g. large scoping for long-term maintainability.Issues that are complex, e.g. large scoping for long-term maintainability.