-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
safari: infinite loop when hot reloading #3828
Comments
@ydnar Have you tried to remove all page information about localhost in safari? I had similar issues when a service worker stuck. |
I have same\similar issue on chrome all time. I have use of nuxt/pwa. And reloading just hangup on some of hot reload and after it page dont load at all no matter if u close tab, open new tab or anything it will just load forever. Only anonymous window helps. Pretty terrible dev experience |
@aldarund See nuxt-community/pwa-module#60 (comment). This should be an issue of @ydnar Please ping me if you do not use workbox/pwa-module |
@manniL we’re not using |
Have you solved this problem? @aldarund |
We have the same issue here, some things I tried without any success :
I am working on MacOS, happens to all browsers, but not all the time. I can sometime works for a few hours before it happens. Environment :
Nuxt : v1.4.2 |
I have just experienced the same issue - I am investigating it. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
you can see this happening here in Safari |
This comment has been minimized.
This comment has been minimized.
Same here, fyi it also happends for me on a nextjs project so it may be a webpack related issue! |
Similar issue with nuxt, Safari shows following errors:
|
Started testing my app in Safari
This happens when I restart the app, while the app is already open in the browser. Once the server comes up a second time, Safari goes bezerk 😄 Latest Google Chrome & Mozilla Firefox do not experience such an issue. |
Also worth noting: a manual refresh does NOT stop the refresh loop, even with clearing the cache (Cmd-Option-R). The window/tab must be completely closed to stop the loop. I am also experiencing this on mobile Safari on iOS 12.1.2. |
I get this too, same as above, only killing the tab solves it 😕 |
In my case the reason was wrong URL of back-end for graphql and axios. It tries to reconnect, but gets |
@valera-rozuvan Probably trying this first.
|
Thank you looks like this solve the issue |
Thanks, just emptying the cache worked for me |
I was experiencing this bug, and as @fabiom91 mentioned, just emptying the cache fixed my issue. Nuxt: 2.14.12 |
Except you have to do this after almost every server restart... |
I've been having this issue for the last few days but with chrome while using a cloud ide & a cloudflare tunnel. The fix for me was to turn on "Development Mode" in cloudflare under "Caching > Configuration > Development Mode" which disables all caching on that side of things. I assume this bug has something to do with a conflicting cache/header expectation for the dev server. |
I don't get why this issue is closed. |
Is this issue reproducible without PWA module? |
Yes. If it helps you debug this issue, it happens for me in this repo: https://github.com/pandicornzombie/website. |
* fixes reload loop on safari (closes #3828)
Issue should be solved in next nightly ( |
I have this same problem using nuxt+typescript. Probably when I suspended from |
@lorenzofiamingo Have you tried with |
@danielroe Sorry but I'm a real beginner with nuxt (started an hour ago 😅), so I'm not sure to know how to do that. Anyway for me the problem is solved using ctr+c to kill |
@lorenzofiamingo Great - glad all is well 😊 |
Just had the same issue in Quasar Framework. Open project in dev mode in Safari, got infinite reload with and without Web Inspector. I tried also turn on and off cache button in Web Inspector, has no effect. My app is in SSR + PWA mode. I tried to disable PWA feature in my app, no effect. Before, I had infinite reloading in Chrome with closed Web Inspector. Then I googled it and I'm here. There is no solution for my problem, so I googled further. I found this: https://stackoverflow.com/a/41936320/766307 Then I changed |
I have this same issue without using pwa-module, just Nuxt 3 and Vue 3 and Vite, in 2023. I cannot refresh the page without getting an infinite loop in all browsers in Mac, and I always have to close the tab, clean cache and do a crtl+C and relaunch server again to see new results on the web. How coud I do this in Nuxt config in Nuxt 3 ? build: { |
@carbdias I would suggest opening a new discussion rather than commenting on an issue closed 3 years ago (where it may unfortunately get lost) |
In my case this was not an option as my tunnel was defined in a sub domain used by other apps.
|
Version
v1.4.2 (or latest 2.0.0 pre code)
Steps to reproduce
yarn dev
(HOST=0.0.0.0 nuxt
)What is expected ?
Hot reload to work without forcing me to close the tab and open a new tab every time I change a line of code.
What is actually happening?
Browser crushing infinite reload.
The text was updated successfully, but these errors were encountered: