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

Cannot start empty project on Ramdisk ('vue' is imported but could not be resolved) #4781

Closed
7 tasks done
jimmylab opened this issue Aug 29, 2021 · 7 comments
Closed
7 tasks done
Labels
bug: upstream Bug in a dependency of Vite

Comments

@jimmylab
Copy link

Describe the bug

Follow the guide from documentation to start an empty vue project:

npm init vite@latest
cd vite-project
npm install
npm run dev

and get errors:

error when starting dev server:
Error: The following dependencies are imported but could not be resolved:

  vue (imported by Z:/vite-project/src/components/HelloWorld.vue)

Are they installed?
    at optimizeDeps (Z:\vite-project\node_modules\vite\dist\node\chunks\dep-972722fa.js:73454:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async runOptimize (Z:\vite-project\node_modules\vite\dist\node\chunks\dep-972722fa.js:74167:48)
    at async Server.httpServer.listen (Z:\vite-project\node_modules\vite\dist\node\chunks\dep-972722fa.js:74183:21)

Reproduction

See description

btw, all package manager (npm yarn pnpm) failed to run dev server

System Info

System:
    OS: Windows 10 10.0.19042
    CPU: (16) x64 Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
    Memory: 22.48 GB / 31.93 GB
  Binaries:
    Node: 16.8.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.11 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 7.21.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 92.0.4515.159
    Edge: Spartan (44.19041.1023.0), Chromium (92.0.902.84)
    Internet Explorer: 11.0.19041.906
  npmPackages:
    @vitejs/plugin-vue: ^1.6.0 => 1.6.0
    vite: ^2.5.1 => 2.5.1

Used Package Manager

npm

Logs

No response

Validations

@github-actions
Copy link

Hello @jimmylab. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 3 days.

@haoqunjiang
Copy link
Member

Z:\? It may also be related to your file system. Is it on a network drive? What shell environment are you using?

I'm not sure but please check that.

@jimmylab jimmylab changed the title Cannot start empty project ('vue' is imported but could not be resolved) Cannot start empty project on Ramdisk ('vue' is imported but could not be resolved) Aug 30, 2021
@jimmylab
Copy link
Author

Sorry for my recklessness, drive Z:\ is a ramdisk, vite behaves well on other drives.

@bluwy
Copy link
Member

bluwy commented Mar 18, 2022

@jimmylab Hoping to check if this has been resolved? This would be a hard one to fix since it involves one to create a ramdisk to debg it. It would be great if you can help pinpoint where/why Vite fails at this too.

@jimmylab
Copy link
Author

jimmylab commented Apr 6, 2022

Nope. I believe it's related to an issue of node.js:
nodejs/node#6861

@bluwy bluwy added the bug: upstream Bug in a dependency of Vite label Apr 7, 2022
@bluwy
Copy link
Member

bluwy commented Apr 7, 2022

Thanks for the update @jimmylab! That issue seems like it, though I'm not sure what Vite can do here to address the issue, there doesn't seem to be a workaround available currently.

@patak-dev
Copy link
Member

Closing, like @sodatea and @bluwy pointed out, there isn't an actionable item here for Vite Core. Thanks for raising the issue though, it is good to have it connected to the upstream issue now.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug: upstream Bug in a dependency of Vite
Projects
None yet
Development

No branches or pull requests

4 participants