question-mark
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.

Duplicate sidebar in build not dev

See original GitHub issue

Attempting to do a very basic VitePress site and the build looks different then dev. For some reason the build is duplicating the sidebar and page navigation sections.

yarn docs:dev

Screenshot from 2020-12-05 10-09-22

yarn docs:build and yarn docs:serve

Screenshot from 2020-12-05 10-09-11

To Reproduce Follow the steps listed here: https://vitepress.vuejs.org/guide/getting-started.html then add a basic sidebar to docs/.vitpress/config.js like this.

module.exports = {
  themeConfig: {
      sidebar: {
          '/': [
              {
                text: 'Introduction',
                children: [
                  { text: 'Introduction', link: '/' },
                  { text: 'Getting Started', link: '/guide/' },
                ]
              }
            ]
      }
  }
}

Expected behavior Would expect yarn docs:dev to look the same as yarn docs:build and yarn docs:serve.

System Info

  • vitepress version: v0.9.1
  • vite version: v1.0.0-rc.13
  • Node version: v12.18.2
  • OS version: Pop!_OS 20.10

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
posvacommented, Jan 4, 2021

This was fixed in the latest vitepress version

2reactions
lukeromanowiczcommented, Dec 17, 2020

@fotijr you are absolutely right.

A quick workaround is to downgrade Vue dependency from 3.0.4 to 3.0.3. In yarn it would be:

  "resolutions": {
    "vitepress/**/vue": "3.0.3",
    "vitepress/@vue/compiler-sfc": "3.0.3",
    "vitepress/@vue/server-renderer": "3.0.3"
  },
Read more comments on GitHub >

github_iconTop Results From Across the Web

html - How do I create a copy of a sidebar on the other side of ...
Here's how to achieve this: Duplicate the sidebar markup and give them different class names (besides their common name sidenav for grouping ...
Read more >
Copy & Paste a file in the sidebar doesn't work anymore - GitHub
As of today, the insiders build doesn't allow a file in the workspace pane on the sidebar to be copied-and-pasted to create a...
Read more >
Building a Twitter Sidebar Clone with Material-UI and React
It's not yet looking like the Twitter sidebar clone we want to build. Some things are missing, like the icons and button.
Read more >
Workflow sidebar has duplicated Git Build Data links
If you see duplicated sidebar links of another kind, better to file a separate issue, with steps to reproduce if possible.
Read more >
How to remove the duplicated sidebar search context menu ...
Putting the "search with bing in the sidebar" there RIGHT NEXT to the ... Why do you have to shove this garbage in...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found