-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Parcel cache not working under windows #9952
Comments
Are you missing permissions to create a |
No, I have full control of the project folder, I can see the As a side note: I also seem to have troubles with file watching - the watcher seems to crash now and then when I save changes (but this might be related to the VSCode settings - I've read the docs ;-)). So again maybe likely not a parcel issue, but a watcher issue... |
Sorry, I've tried again and was not able to reproduce anymore. I've started a new, clean project and everything works. Went back to the old project (where I had the problems) and also everything works there now. Sorry for the false report, obviously this was something related to my machine. |
I encounter this when programmatically invoking parcel in a test environment, see: https://github.com/planet-a-ventures/parcel-optimizer-versioned-imports/actions/runs/11700263235/job/32583910351 |
🐛 bug report
A new install of parcel under windows 11 and trying to build the getting-started code failes with
[Error: Error opening directory]
(reported twice). Subsequent runs ofnpx parcel src/index.html
fail with error message[Error: Unable to open snapshot file: No such file or directory]
, so overall it is not possible to use parcel...After adding the
--no-cache
flag everything works (workaround found here, so I think this is related to caching (maybe a windows only issue)).The project path does not contain spaces, the node.js version is the current v20.17.0 LTS version, npm is v10.8.2.
🎛 Configuration (.babelrc, package.json, cli command)
The cli command to run the build I use is
npm run start
.🤔 Expected Behavior
Well, not throwing an error and dropping back to command line, but continuing to build/serve.
😯 Current Behavior
The cli command to run the build is
npm run start
, which failes with:Subsequent runs of
npm run start
fail with:💁 Possible Solution
The workaround is to add the
--no-cache
flag to all parcel commands (workaround found here, so I think this is related to caching (maybe a windows only issue)).A working package.json is:
🔦 Context
I was trying to follow the "getting started" tutorial.
💻 Code Sample
Just follow the "getting started" under Windows 11.
🌍 Your Environment
The text was updated successfully, but these errors were encountered: