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

clean up up cache dirs on rootDir/hash change #14604

Closed
danielroe opened this issue Aug 16, 2022 · 0 comments · Fixed by nuxt/framework#6672
Closed

clean up up cache dirs on rootDir/hash change #14604

danielroe opened this issue Aug 16, 2022 · 0 comments · Fixed by nuxt/framework#6672

Comments

@danielroe
Copy link
Member

danielroe commented Aug 16, 2022

we've had a number of issues tied back somehow to cache not being properly invalidated, such as when a project directory is moved or renamed, a transform is updated within nuxt, or a downstream package is updated. These seem to tie back to invalid caches.

Vite already invalidates its cache in certain conditions:
https://github.com/vitejs/vite/blob/ed0286186b24748ec7bfa336f83c382363a22f1d/packages/vite/src/node/optimizer/index.ts#L1034-L1055

This issue is to track the possible causes of cache failure and invalidate them ourselves.

Possibly related: #14585


Current solution: Run npx nuxi-edge@latest cleanup after dependency upgrades and before nuxt dev manually to ensure caches are cleaned up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants