Closed
Description
Describe the bug
I usually use api useSidebar at new version
Reproduction
`
vitepress build
vitepress v2.0.0-alpha.7
✗ Build failed in 5.59s
✗ building client + server bundles...
build error:
map.md?vue&type=script&setup=true&lang.ts (6:9): "useSidebar" is not exported by "
`
Expected behavior
working
System Info
System:
OS: Windows 11 10.0.22000
CPU: (8) x64 Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
Memory: 12.20 GB / 31.87 GB
Binaries:
Node: 22.15.0 - D:\Program Files\nodejs\node.EXE
Memory: 12.20 GB / 31.87 GB
Memory: 12.20 GB / 31.87 GB
Memory: 12.20 GB / 31.87 GB
Binaries:
Node: 22.15.0 - D:\Program Files\nodejs\node.EXE
npm: 10.9.2 - D:\Program Files\nodejs\npm.CMD
pnpm: 10.10.0 - ~\AppData\Roaming\npm\pnpm.CMD
Browsers:
Edge: Spartan (44.22000.120.0), Chromium (135.0.3179.98)
Internet Explorer: 11.0.22000.120
npmPackages:
vitepress: ^2.0.0-alpha.7 => 2.0.0-alpha.7
Additional context
No response
Validations
- Check if you're on the latest VitePress version.
- Follow our Code of Conduct
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.