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

Vite return old cache when file is deleted and restored #2630

Closed
3 tasks done
csr632 opened this issue Mar 21, 2021 · 0 comments · Fixed by #2629
Closed
3 tasks done

Vite return old cache when file is deleted and restored #2630

csr632 opened this issue Mar 21, 2021 · 0 comments · Fixed by #2629
Labels
feat: hmr p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@csr632
Copy link
Member

csr632 commented Mar 21, 2021

⚠️ IMPORTANT ⚠️ Please do not ignore this template. If you do, your issue will be closed immediately.

Describe the bug

When a file is deleted and restored, vite keeps using cache with out-of-date content(content before file is deleted), intead of the restored content.

Reproduction

Checkout this test.

UPDATE: I have pushed a fix in that PR.

System Info

  • vite version: 2.1.2
  • Operating System: Ubuntu
  • Node version: 14.15.5
  • Package manager (npm/yarn/pnpm) and version: 1.22.5

Logs (Optional if provided reproduction)

  1. Run vite or vite build with the --debug flag.
  2. Provide the error log here.
csr632 added a commit to csr632/vite that referenced this issue Mar 21, 2021
@Shinigami92 Shinigami92 added p3-minor-bug An edge case that only affects very specific usage (priority) bug: hmr and removed pending triage labels Mar 22, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feat: hmr p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants