-
Notifications
You must be signed in to change notification settings - Fork 82
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
Breaks when yarn build
ing with latest docusaurus?
#150
Comments
yarn install
ing with latest docusaurus?yarn build
ing with latest docusaurus?
Hi @JaimeObregon, I'm having trouble reproduce this issue. Do you mind sharing your Thanks :) |
Sure, @bourdakos1. This is what I am doing:
{
"name": "test",
"private": true,
"scripts": {
"build": "docusaurus build",
"clear": "docusaurus clear",
"deploy": "docusaurus deploy",
"docusaurus": "docusaurus",
"serve": "docusaurus serve",
"start": "docusaurus start --port 4000",
"swizzle": "docusaurus swizzle",
"write-heading-ids": "docusaurus write-heading-ids",
"write-translations": "docusaurus write-translations"
},
"dependencies": {
"@docusaurus/core": "^2.0.0-beta.14",
"@docusaurus/preset-classic": "^2.0.0-beta.14",
"@docusaurus/types": "^2.0.0-beta.14",
"@mdx-js/react": "^1.6.21",
"clsx": "^1.1.1",
"docusaurus-preset-openapi": "^0.4.2",
"prism-react-renderer": "^1.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1"
},
"packageManager": "yarn@3.1.1"
}
|
Thanks, reproduced! |
@JaimeObregon For some packages, it looks like yarn 3 is resolving
However, as a temporary workaround you can use resolutions to force everything to the proper version: "resolutions": {
"@docusaurus/core": "2.0.0-beta.14",
"@docusaurus/preset-classic": "2.0.0-beta.14",
"@docusaurus/mdx-loader": "2.0.0-beta.14",
"@docusaurus/plugin-content-docs": "2.0.0-beta.14",
"@docusaurus/types": "2.0.0-beta.14",
"@docusaurus/utils-validation": "2.0.0-beta.14",
"@docusaurus/utils": "2.0.0-beta.14"
} I'm not sure if this is a Yarn issue or a Docusaurus issue, but I recommend opening an issue with Docusaurus and link back to this issue. |
Thank you, @bourdakos1! |
Seems to be caused by a weird issue with package version sorting plus canary version names messing with SemVer. Closing this, as it's being addressed in facebook/docusaurus#6157. Thank you, @bourdakos1! |
yarn build
fails with this error:The relevant part of my
packages.json
:So I head to my
node_modules/@docusaurus/plugin-content-docs/package.json
and I see:It seems yarn is resolving
plugin-content-docs
to2.0.0-beta.fc64c12e4
, with whichdocusaurus-openapi
breaks.I have retried
yarn install
after removingyarn.lock
and flushingnode_modules
, to no avail.The text was updated successfully, but these errors were encountered: