vite icon indicating copy to clipboard operation
vite copied to clipboard

caching and serving a previous version

Open j2l opened this issue 1 year ago • 0 comments

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: image image

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

j2l avatar Dec 22 '23 11:12 j2l