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

pref: pre-requisite for Yarn 4+ usage #3177

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thatsgolden
Copy link

@thatsgolden thatsgolden commented Feb 13, 2025

Description of Problem

By default, yarn 4 use global caches. but vite does not support global cache right now.

so it can't run yarn dev successfully if not disable global cache.

we need to add a tip in the document, or people will facing an error when they follow the tutorial.

$ yarn dev
  VITE v6.1.0  ready in 1976 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
  ➜  Vue DevTools: Open http://localhost:5173/__devtools__/ as a separate window
  ➜  Vue DevTools: Press Alt(⌥)+Shift(⇧)+D in App to toggle the Vue DevTools
  ➜  press h + enter to show help
X [ERROR] Could not read from file: D:/Work/.yarn/__virtual__/vue-router-virtual-65f92dfaef/6/C:/Users/thats/AppData/Local/Yarn/Berry/cache/vue-router-npm-4.5.0-eade46eba9-10c0.zip/node_modules/vue-router/dist/vue-router.mjs

X [ERROR] Could not read from file: D:/Work/.yarn/__virtual__/vue-virtual-28c6106370/6/C:/Users/thats/AppData/Local/Yarn/Berry/cache/vue-npm-3.5.13-59cb3fae80-10c0.zip/node_modules/vue/dist/vue.runtime.esm-bundler.js

X [ERROR] Could not read from file: D:/Work/.yarn/__virtual__/pinia-virtual-2cf6404f3f/6/C:/Users/thats/AppData/Local/Yarn/Berry/cache/pinia-npm-2.3.1-6ff87b0dfd-10c0.zip/node_modules/pinia/dist/pinia.mjs

D:\Work\.yarn\unplugged\esbuild-npm-0.24.2-0dcfc14be5\node_modules\esbuild\lib\main.js:1476
  let error = new Error(text);

Proposed Solution

add pre-requisite tips for Yarn 4+ usage

Additional Information

Copy link

netlify bot commented Feb 13, 2025

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit c484a63
🔍 Latest deploy log https://app.netlify.com/sites/vuejs/deploys/67adc10ff543150008e11408
😎 Deploy Preview https://deploy-preview-3177--vuejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant