docs icon indicating copy to clipboard operation
docs copied to clipboard

pref: pre-requisite for Yarn 4+ usage

Open thatsgolden opened this issue 10 months ago • 1 comments

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

thatsgolden avatar Feb 13 '25 09:02 thatsgolden

Deploy Preview for vuejs ready!

Name Link
Latest commit c484a63bc02cce2ec88035bf632ade224f5352ab
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.

netlify[bot] avatar Feb 13 '25 09:02 netlify[bot]