Breaks when `yarn build`ing with latest docusaurus?
See original GitHub issueyarn build
fails with this error:
Error: Cannot find module '@docusaurus/plugin-content-docs/lib/sidebars/generator'
Require stack:
- /Users/jaime/Code/c20/node_modules/docusaurus-plugin-openapi/lib/sidebars/index.js
- /Users/jaime/Code/c20/node_modules/docusaurus-plugin-openapi/lib/index.js
- ...
The relevant part of my packages.json
:
"dependencies": {
"@docusaurus/core": "^2.0.0-beta.14",
"@docusaurus/preset-classic": "^2.0.0-beta.14",
"@docusaurus/types": "^2.0.0-beta.14",
"docusaurus-preset-openapi": "^0.4.2",
// ...
So I head to my node_modules/@docusaurus/plugin-content-docs/package.json
and I see:
{
"name": "@docusaurus/plugin-content-docs",
"version": "2.0.0-beta.fc64c12e4",
It seems yarn is resolving plugin-content-docs
to 2.0.0-beta.fc64c12e4
, with which docusaurus-openapi
breaks.
I have retried yarn install
after removing yarn.lock
and flushing node_modules
, to no avail.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
yarn build error with "Docusaurus found broken links" after ...
I'm using the latest version of Docusaurus. I have tried the npm run clear or yarn clear command.
Read more >Deployment
For up-to-date documentation, see the latest version (2.2.0). ... To build the static files of your website for production, run: npm; Yarn.
Read more >@docusaurus/utils-common | Yarn - Package Manager
Introduction. Docusaurus is a project for building, deploying, and maintaining open source project websites easily. Short on time? Check out our 5-minute ...
Read more >How To Upgrade a Package to the Latest Version Using Yarn ...
yarn remove @docusaurus/coreyarn add @docusaurus/core ... packages by groups of about 5 packages at a time, and I try not to break things....
Read more >Recently Active 'docusaurus' Questions
Currently, during generation docusaurus doesn't detect any broken links. ... I built a production-ready Docusaurus website using docusaurus build (or npm ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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!
Thank you, @bourdakos1!