-
-
Notifications
You must be signed in to change notification settings - Fork 866
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
Problems with some kind of cache in hot-reload #882
Comments
Can you create an example repo? |
Pro tip you can write |
Not necessarily the same issue, but I was having similar symptoms: Restarting razzle wouldn't pick up new code that I had, and babel loader was complaining at the old code syntax (which wasn't there anymore). Some digging showed that babel cache can be problematic Experience-Monks/babel-plugin-static-fs#7 and kentcdodds/babel-plugin-preval#19 (comment). But in my case purging What helped was to remove the |
Closed due to inactivity. Holler if this is a mistake, and we'll re-open it. |
I've been having very strange issues with razzle and hot reloading. Is there a cache it uses that I can clear? Sometimes the hot reloading will be working, and adding console.log shows up, but other parts of the code will not have updated so what's on disk and what I see in the browser is subtly different. Restarting razzle or the computer solves that problem. But I also see other wierd things that even seem to survive reboots. Case in point:
That dangling sort: comes from code I was working on yesterday, on a different branch. I've rebooted since then, I'm on a clean branch, and as you can see there's no dangling sort: on disk. So how is that error happening? I feel like this is a very clear example of the problems I've been having.
I managed to fix it by doing
rm -rf node_modules && npm install
. I'm a bit puzzled by why that worked, is there some kind of cache in the node_modules directory maybe?Do you have any ideas about what might be going wrong? Thanks!
The text was updated successfully, but these errors were encountered: