vite
vite copied to clipboard
caching and serving a previous version
Describe the bug
Using svelte, npm run dev (vite), I stumbled on a weird case where I have an error about a variable I used (hierarchy2), that doesn't exist anymore in App.svelte since a few version iterations:
I tried with another fresh browser and have the same issue, so it's not the browser cache.
I also tried by changing the file name (App.svelte) to something else and call it in main.ts, it didn't fix it.
An also tried vite --force, npm cache clean --force without luck.
Is there a cache in vite? How to clear it? Or is it elsewhere?
Reproduction
impossible
Steps to reproduce
No response
System Info
System:
OS: Linux 6.6 Pop!_OS 22.04 LTS
CPU: (12) x64 Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
Memory: 8.04 GB / 15.43 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 18.17.1 - /usr/bin/node
Yarn: 1.22.19 - ~/n/bin/yarn
npm: 9.6.7 - /usr/bin/npm
bun: 1.0.1 - ~/.bun/bin/bun
Browsers:
Chrome: 120.0.6099.129
Chromium
Firefox
npmPackages:
vite: ^4.2.0 => 4.5.1
Used Package Manager
npm
Logs
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [X] The provided reproduction is a minimal reproducible example of the bug.