-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Infinite refresh running vite with SvelteKit #2021
Comments
What URL are you visiting to see the app? I'm seeing this refreshing with http://127.0.0.1:3000/ but it works fine with http://localhost:3000/ |
@Conduitry I'm trying both, randomly it works :( |
2.4.4 is the most recent version of Vite now, by the way, not 2.4.3. |
I have setup the project 4 days ago with the command |
@Conduitry i have |
@mmarchois i noticed you have filed a similar issue on vites repository vitejs/vite#4406 please don't cross-post or at least mention the other issues if you do. Not everyone is following both repos and missing information from one side may cause extra work. If you are not sure where to file an issue, you can ask on svelte discord |
Can't reproduce with Please provide a repository and detailed steps on how to reproduce the issue if possible. |
I'm experiencing the same issue. I have no possible explanation but it occurs after a clean install with |
adding d3-scale to a fresh skeleton project's index.svelte does not cause ininite reload for me, it causes a http 500 error. Please provide a link to a repository where this problem is reproducible. It would also help if you provided logs of when it's happening. You can use this may be a vite issue, see vitejs/vite#4463 |
@dominikg |
504 hints at a network setup issue though i wonder how that could happen on localhost. I also find it hard to believe that you don't have access to console logs or browser logs during dev. Unless you start to provide the information i've asked for twice, i'm not going to respond here anymore. |
Same here. If you add a dep or event change package.json or package-lock.json manually it re-compile all "temp" files. For it to work I need to stop and restart npm run dev many times! |
@dominikg For privacy reasons I can't share code :( |
We always have this kind of logs
Does this have anything to do with https://vitejs.dev/guide/dep-pre-bundling.html |
Same here. I need to stop server many times before I can work. Everytime I change a dependency. Very bad. |
@dominikg Same issue here, we have so many 504 errors, it must come from the fact that the event loop is blocked or something, anyway, we can't make requests to the server any more. when we run it in production mode ( |
Same here. I tried to stop and start server many times. It doesn't work. Like @elfakamal in production mode it works. With |
Hi, Everything is working with |
I think that now I will cry with happiness. |
@mmarchois try 146 and close this issue. It works! |
@frederikhors Same issue with 146. To make it work, I need to comment out the import of an external library |
@mmarchois with 146 it works for me. I'm crying with happiness. Can you post your svelte.config.js? |
@frederikhors my svelte.config.js :
|
I don't know. Can you please remove everything (node_modules, package-lock.json, svelte dirs)? You can use |
I remove all of them, but nothing change :( |
It is simple: import preprocess from "svelte-preprocess";
import adapter from "@sveltejs/adapter-static";
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),
kit: {
// hydrate the <div id="svelte"> element in src/app.html
target: "#svelte",
adapter: adapter({
fallback: "200.html",
}),
vite: {
optimizeDeps: {
include: ["broadcast-channel"],
},
},
ssr: false,
appDir: "app",
},
};
export default config; |
we removed an external dependency and the project build again. I'm going to dig into this to find out why (esm?) |
I don't know but 146 fixes all my issues! :) |
When I delete the folders |
@niketpathak this was before 146 for me. |
@frederikhors , I am already on |
Windows or what? Node version? |
I'm on Ubuntu 20.04 running Node 14.17 LTS |
Please set up a repro (ideally a github repo) to save everyone's time, as requested by dominik many times. |
yep, gonna do that! Thanks! |
hello, a quick update, I tried to create a new repo to try to reproduce the issue, however, I wasn't able to reproduce it. Also, after having updated to |
Given that there is no reproduction for this issue and multiple people have reported the problem solved I'm going to close this. If you're still hitting the issue please file a new issue with a reproduction. There's no way for us to investigate this bug otherwise |
Describe the bug
I have an inifinite refresh when opened in the browser with vitejs and sveltekit
Reproduction
Logs
No response
System Info
Severity
blocking all usage of SvelteKit
Additional Information
No response
The text was updated successfully, but these errors were encountered: