Skip to content

Instantly share code, notes, and snippets.

@levic
Created January 29, 2023 10:56
Show Gist options
  • Save levic/b8a31b70163329617f0338c6af0a975b to your computer and use it in GitHub Desktop.
Save levic/b8a31b70163329617f0338c6af0a975b to your computer and use it in GitHub Desktop.
astro with yarn berry doesn't set vite allow directory correctly
yarn set version berry
yarn config set enableGlobalCache true
yarn create astro@latest
# (astro v2.0.2)
# choose defaults for everything except project name:
# - project name: myproject
# - a few best practices
# - install yarn dependencies: yes
# - initialize a new git repository: yes
# - typescript: strict
cd myproject
# these two commands are a workaround for issue #5637
touch yarn.lock
yarn install
yarn dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment