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.

Docusaurus errors during bootstrap.

See original GitHub issue

I tried to fork the project and run it, but docusarus fails to generate the sidebar:

ValidationError: themeConfig.hideableSidebar has been moved to

This is probably due to Docusaurus update, hence docusaurus.config.js has to be updated accordingly:

 //hideableSidebar: true,
    docs: {
      sidebar: { hideable: true },

Then it triggers 2 warnings and 3 errors:

[WARNING] No docs found in "native-tokens/token-registry": can't auto-generate a sidebar.
[WARNING] No docs found in "governance/cardano-improvement-proposals": can't auto-generate a sidebar.
[ERROR] Sidebars file at "D:\dev\opensource\developer-portal\sidebars.js" failed to be loaded.
[ERROR] Loading of version failed for version current
[ERROR] Error: Sidebar category Token Registry has neither any subitem nor a link. This makes this item not able to link to anything.

It looks like there is not any /token-registry directory in /native-tokens/ the same goes for /cardano-improvement-proposals . Were they deleted on purpose ?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

Kais3rPcommented, Jul 5, 2022

Oh, I had no idea a manual build was needed in order to execute the static generation ( my bad habit to skip READMEs… ), it’s the first time I use docusaurus and now I saw the build scripts that fetch the extra docs. Thanks. Maybe it could be a good idea to add an extra script command in package.json just to fetch the extra files needed in dev mode, without the need to perform a full build, something like: "pre-start": "npm-run-all ts-node scripts/cip.ts ts-node scripts/token-registry.ts ts-node scripts/rust-library.ts". What do you think ?

Kais3rPcommented, Jul 5, 2022

Yes, an arbitrary decision. Depending on what you are working on, it makes sense to change it locally for yourself. I think in principle most people should not reload all things with every developer build. (and that was the reason for not doing it.)

The pre-start script would be executed only once, manually, after the cloning of the repo. The fact is you don’t need a build locally to start the webpack dev server, the way it is now, you are forced to build.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap template not rendering · Issue #3329 - GitHub
Bootstrap template not rendering #3329. bug An error in the Docusaurus core causing instability or issues with its execution difficulty: starter.
Read more >
Adding Bootstrap JavaScript to Docusaurus but having issues
BUT the bootstrap components I'm rendering in Docusaurus, whilst styled correctly, aren't affected by the Bootstrap minified file I'm ...
Read more >
Code blocks | Docusaurus
Handling code blocks in Docusaurus Markdown.
Read more >
Bootstrap Carousel is breaking when built in v2. Works find in ...
I suspect that this is due to the files being minified and combined for the build. I've tried both the full and min.js...
Read more >
@docusaurus/preset-bootstrap - npm
Start using @docusaurus/preset-bootstrap in your project by running `npm i @docusaurus/preset-bootstrap`. There are no other projects in the ...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found