-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
v2.0.0-alpha.56
Breaks All Builds
#2831
Comments
There's a breaking change in the way plugins are imported, please see the release notes - https://github.com/facebook/docusaurus/releases/tag/v2.0.0-alpha.56 |
@yangshun Apologies! Thank you. |
@SamChou19815 Why is this not documented? I think #2788 should had the doc updated together with the code. Otherwise it kind of defeats the main goal of docusaurus: "documentation as code" so that it's always in sync with the code. |
It is a regression and an unintended bug. My original intention is to ensure users don't have to change |
@SamChou19815 Ah I see, make sense. |
Yes |
🐛 Bug Report
This issue has to do with the following packages:
@docusaurus/core v2.0.0-alpha.56
@docusaurus/preset-classic v2.0.0-alpha.56
Click to view `package.json`
In Summary
2.0.0-alpha.55
to2.0.0-alpha.56
breaks all buildsThings I Have Tried:
@docusaurus/theme-live-codeblock
is installed and upgraded (see second error below for more info)node_modules
and thenyarn install
yarn cache clean
, removednode_modules
, and thenyarn install
The Fix:
v2.0.0-alpha.55
resolves the issue.Detailed Summary
After upgrading
@docusaurus/core
fromv2.0.0-alpha.55
tov2.0.0-alpha.56
I receive the following error when runningyarn start
oryarn build
(the important thing to note is the moduleCannot find module '@docusaurus/plugin-content-docs'
):Click me to view error
From there, I upgraded
@docusaurus/preset-classic
fromv2.0.0-alpha.55
tov2.0.0-alpha.56
, which produces the following error (again, note the package name - it's different this time):Click me to view error
Original Questionnaire
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
@docusaurus/core
and@docusaurus/preset-classic
tov2.0.0-alpha.56
yarn start
Expected behavior
Project to start and/or build.
Actual Behavior
Errors (see errors above)
Your Environment
Reproducible Demo
Unable to provide a link for this issue - it's one of those issues you have to test locally.
The text was updated successfully, but these errors were encountered: