-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Open
Labels
feat: deps optimizerEsbuild Dependencies OptimizationEsbuild Dependencies Optimizationpending triage
Description
Describe the bug
Vite fails when I try to use it in a sym-linked directory.
Run in CMD:
npm create vite@latest my-vue-app -- --template vue
cd my-vue-app
npm install
cd ..
mklink /d linked-dir my-vue-app
cd linked-dir
npm run dev
Error:
VITE v3.0.2 ready in 322 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
file:///C:/projects/my-vue-app/node_modules/vite/dist/node/chunks/dep-1513d487.js:36967
fileHash: getHash(metadata.hash + depsInfo[id].file + JSON.stringify(output.imports)),
^
TypeError: Cannot read properties of undefined (reading 'imports')
at runOptimizeDeps (file:///C:/projects/my-vue-app/node_modules/vite/dist/node/chunks/dep-1513d487.js:36967:89)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Reproduction
Auto-generated
System Info
System:
OS: Windows 10 10.0.19043
Binaries:
Node: 18.2.0 - C:\Program Files\nodejs\node.EXE
npm: 8.9.0 - C:\Program Files\nodejs\npm.CMD
Vite: 3.0.2Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feat: deps optimizerEsbuild Dependencies OptimizationEsbuild Dependencies Optimizationpending triage