Duplicate sidebar in build not dev
See original GitHub issueAttempting 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
yarn docs:build
and yarn docs:serve
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:
- Created 3 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top 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 >
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
This was fixed in the latest vitepress version
@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: