-
Notifications
You must be signed in to change notification settings - Fork 809
Browser doesn't pick up code changes #77
Comments
Could this be the issue? bundle.css has a ?livereload but bundle.js doesn't. Therefore the browser may be caching it.
Alternatively, perhaps the latest Chrome has a bug w/detecting changes in the timestamp?? |
Changing the port from 5000 to 5001 in package.json caused the browser to pick up the changes so there is definitely a caching issue.
|
Probably you might want to consider disabling cache in your browser like https://stackoverflow.com/a/23944114/1513547 |
I am having the same issue on Firefox 70.0 (64-bit) on Ubuntu. I even disabled |
I just tested on Firefox incognito mode and the issue persist. |
Update: it's not the browser since the console doesn't change at all. Not sure how to troubleshoot this from here. |
This solved it for me:
(based on rollup/rollup#1666 (comment)) |
Experiencing a similar problem while doing dev work in a docker container -- I'd assume this has nothing to do with the browser or livereload. Sometimes if I make changes to a frontend file (.svelte) it won't update. I delete the bundle files and grep around looking for a string I knew was in the earlier version of the file -- can't find it anywhere and I know I've changed it in the source file What helps is killing the container and starting it up again. I'm on macOS Big Sur using Docker Desktop, and mount the project directory into the container. Basically could be a file sharing problem, except that I can see the correct version of the file inside the container using other tools (grep, cat, etc) Perhaps there's a cache somewhere, outside of the project directory? Couldn't find it though. EDIT: Seems likely to be an issue (a weird one) with docker desktop. I can cat a file that doesn't exist and doesn't show up with ls. Sometimes cat shows the contents, other times it doesn't. 😱 |
Description:
Browser is somehow caching the bundle.js. In Chrome dev tools, when I click on a .svelte class in an error message, it shows me an older version of the class.
Environment:
Browser: Chrome 77.0.3865.120 (Official Build) (64-bit)
OS: macOS Mojave 10.14.6 (18G103)
I am using the "dev" target for yarn/npm:
Severity:
This is blocking my development w/Svelte.
The text was updated successfully, but these errors were encountered: