question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Breaks when `yarn build`ing with latest docusaurus?

See original GitHub issue

yarn 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JaimeObregoncommented, Jan 8, 2022

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!

1reaction
JaimeObregoncommented, Jan 8, 2022

Thank you, @bourdakos1!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found