Skip to content

Errors in console about deeply nested sidebar #2190

Closed
@KieranHunt

Description

@KieranHunt
  • I confirm that this is an issue rather than a question.

Bug report

Steps to reproduce

Have sidebar that is nested more than 3 items deep.

What is expected?

No errors in the console output.

What is actually happening?

Errors on first page load and on navigating between pages.

Other relevant information

Found the line here:

if (groupDepth > 3) {
console.error(
'[vuepress] detected a too deep nested sidebar group.'
)
}

Reading through that code, it seems that VuePress doesn't really have an issue with nesting deeper than three. It just errors into the console and then continues.

Is there some context that I'm missing? I see that the change happened here: 01dd45b
But 3 seems pretty arbitrary.

Actual error message:

07:58:13.598 [vuepress] detected a too deep nested sidebar group. 2 2.258cb917.js:1:3364

Metadata

Metadata

Assignees

No one assigned

    Labels

    has PRHas a related PRtype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions