kit: Infinite refresh running vite with SvelteKit

Describe the bug

I have an inifinite refresh when opened in the browser with vitejs and sveltekit

[vite] new dependencies found: js-cookie, updating...
[vite] ✨ dependencies updated, reloading page...

Reproduction

  • Install dependencies with npm install
  • Start app using npm run dev or yarn dev
  • Open the app in a browser

Logs

No response

System Info

vite version: 2.4.3
sveltekit: 1.0.0-next.137
@sveltejs/vite-plugin-svelte: 1.0.0-next.14
Operating System: ubuntu
Node version: v14.17
Package manager: npm 7.20.1

Severity

blocking all usage of SvelteKit

Additional Information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 8
  • Comments: 37 (19 by maintainers)

Most upvoted comments

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 SvelteKit v1.0.0-next.151, the problem seems to have gone away! So I won’t be digging deeper into it anymore!

Please set up a repro (ideally a github repo) to save everyone’s time, as requested by dominik many times.

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

yep, gonna do that! Thanks!

I’m experiencing the same issue. I have no possible explanation but it occurs after a clean install with npm init svelte@next my-app and then installing and importing d3-scale (import {scaleLinear} from 'd3-scale';) into src/routes/index.svelte. I tried other node modules but so far only d3-scale caused this issue.

@mmarchois i noticed you have filed a similar issue on vites repository https://github.com/vitejs/vite/issues/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