Closed aamir1995 closed 11 months ago
Hello, thanks for this awesome project :)
I'd like to report a possible bug that's only happening when you use 4.0.0-next.17, I tried downgrading to 4.0.0-next.16 and it worked like a charm!
4.0.0-next.17
4.0.0-next.16
It seems that when you're on 4.0.0-next.17, command docusaurus run results in an error if there's a sidebar config in sidebars.js.
docusaurus run
in my case, I have defined some config for generated docs in the sidebars.js as follows:
const sidebars = { mainSidebar: [ { type: "category", label: "Documentation", link: { type: "generated-index", title: "Docs", description: "Learn more about the APIs", }, collapsed: false, items: [ { type: "category", label: "web_app", link: { type: "doc", id: "web_app/index", }, items: [{ type: "autogenerated", dirName: "web_app" }], }, ] } ] }
but if you remove this config and run docusaurus run command, it will work fine but if the sidebar config exists it results in an error that looks like this:
Thanks - fixed in 4.0.0-next.18
4.0.0-next.18
Hello, thanks for this awesome project :)
I'd like to report a possible bug that's only happening when you use
4.0.0-next.17
, I tried downgrading to4.0.0-next.16
and it worked like a charm!It seems that when you're on
4.0.0-next.17
, commanddocusaurus run
results in an error if there's a sidebar config in sidebars.js.in my case, I have defined some config for generated docs in the sidebars.js as follows:
but if you remove this config and run
docusaurus run
command, it will work fine but if the sidebar config exists it results in an error that looks like this: