Autogenerated category with directory prevents build #7358
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
closed: duplicate
This issue or pull request already exists in another issue or pull request
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Given the following directory structure:
And the following
sidebars.js
configuration:Then I should see a nested sidebar
However, I get the following exception:
However, having a directory which only contains child directories works if the autogenerated directory is at the top:
Reproducible demo
https://stackblitz.com/edit/github-1awfyk?file=sidebars.js
Steps to reproduce
Create a sidebar configuration where the directory described in an autogenerated sidebar only has directories directly inside it.
Expected behavior
Nested auto-generated indexes should work from any level, as they did in beta 18.
Actual behavior
Your environment
Self-service
The text was updated successfully, but these errors were encountered: