Reputation: 341
I'm using Svelte with Rollup. I've always had a great dev server experience using npm run dev. Now, though the dev server seems stuck on an older version of my application. If I deploy with run build I get my latest changes, but npm run dev attempts to run the same thing from yesterday every time. I think this may be a browser session/cookie issue, as localhost:5000 in a chrome incognito tab served the latest version... but now it is also stuck on that version and won't update as I make and save changes. Any tips?
Upvotes: 8
Views: 2171
Reputation: 3638
Nothing on internet worked for me in this case, so I found following to (sort of) unblock myself
npm run build
npm run preview
This allows me to check the progress of my work.
Disadvantages of going this way:
Upvotes: 0
Reputation: 1495
You probably need to disable the cache.
Open Dev Tools -> Network Tab -> Disable cache (top checkbox).
Upvotes: 12