Docusaurus errors during bootstrap.
See original GitHub issueI tried to fork the project and run it, but docusarus fails to generate the sidebar:
ValidationError: themeConfig.hideableSidebar has been moved to themeConfig.docs.sidebar.hideable.
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:
- Created a year ago
- Comments:5 (2 by maintainers)
Top 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 >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 >
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 Free
Top 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
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 ?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.