Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use VitePress with Yarn Berry (Zero Install) #849

Closed
busyhe opened this issue Jun 24, 2022 · 1 comment · Fixed by #856
Closed

Unable to use VitePress with Yarn Berry (Zero Install) #849

busyhe opened this issue Jun 24, 2022 · 1 comment · Fixed by #856
Labels
bug Something isn't working build Related to the build system
Milestone

Comments

@busyhe
Copy link

busyhe commented Jun 24, 2022

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 busyhe added the bug: pending triage Maybe a bug, waiting for confirmation label Jun 24, 2022
@brc-dd brc-dd added bug Something isn't working build Related to the build system and removed bug: pending triage Maybe a bug, waiting for confirmation labels Jul 9, 2022
@brc-dd brc-dd added this to the v1.0.0 milestone Jul 9, 2022
@brc-dd brc-dd changed the title github action yarn build error whith yarn 3.2.1 monorepo project Unable to use VitePress with Yarn Berry Jul 9, 2022
@brc-dd brc-dd changed the title Unable to use VitePress with Yarn Berry Unable to use VitePress with Yarn Berry (Zero Install) Jul 9, 2022
@brc-dd
Copy link
Member

brc-dd commented Jul 9, 2022

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

fi3ework added a commit to fi3ework/vite-plugin-checker that referenced this issue Jul 21, 2022
fi3ework added a commit to fi3ework/vite-plugin-checker that referenced this issue Jul 21, 2022
fi3ework added a commit to fi3ework/vite-plugin-checker that referenced this issue Jul 21, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working build Related to the build system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants