vitepress icon indicating copy to clipboard operation
vitepress copied to clipboard

Unable to use VitePress with Yarn Berry (Zero Install)

Open busyhe opened this issue 2 years ago • 1 comments

Steps to reproduce:

md foo
cd foo
yarn init -2
yarn add -D vitepress@latest vue@latest
echo '# Hello VitePress' > index.md
yarn vitepress build

Error:

Your application tried to access body-scroll-lock, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.

busyhe avatar Jun 24 '22 06:06 busyhe

For now consider adding body-scroll-lock and @vueuse/core to your dependencies alongside vitepress and vue:

yarn add -D body-scroll-lock @vueuse/core

brc-dd avatar Jul 09 '22 16:07 brc-dd