-
-
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
v2: Move dist dir out of .parcel-cache #3691
Comments
We'd like to get to the point where you never need to manually delete the cache. Any patterns of when you need to delete it? |
I had to delete the cache pretty regularly after changing configuration. To give one example: when first trying to use Parcel 2, I got this error message:
So I ^C parcel, and then added in a .parcelrc:
Upon re-running Parcel, I encounter this error:
Wiping the .parcel-cache fixes it. I am happy to give more detailed repro instructions if necessary. I have had to wipe the cache multiple times in the process of exploring fixes for #3690 as well. |
(Sounds similar to this (where the cache becomes corrupt when parcel crashed because of an error or Ctrl-c): #3655) |
The repro I posted is 100% consistent, if you are having a hard time reproducing the other issue. |
@devongovett Testing out Parcel 2, so I'll add - I have to delete the cache any time I make a change to a linked package. |
The dist dir was moved out of the cache in #4519. |
💬 RFC
I have to clear .parcel-cache quite often to get around stale cache issues, but this wipes .parcel-cache\dist. As noted in #3407, I have set up special data inside .parcel-cache\dist so that I can test from a dev server, but this makes wiping the parcel cache quite annoying.
Currently, it is hardcoded that the dist dir is inside the cache dir: https://github.com/parcel-bundler/parcel/blob/v2/packages/reporters/dev-server/src/ServerReporter.js#L25
But this makes it hard to wipe the assets from the build without affecting the dist folder.
Alternatively, the cache folder could set things up so that it is
.parcel-cache/dist
and.parcel-cache/assets
, and then I can simply wipe one folder.The text was updated successfully, but these errors were encountered: