Skip to content

Dev server infinite reload #4417

Description

@jp-simons

Describe the bug

Every 25 seconds or so my dev server says

8:34:00 PM [vite] changed tsconfig file detected: /Users/j_simons/projects/amp-dsce-metadata/lyrics/ui2/.svelte-kit/tsconfig.json - Clearing cache and forcing full-reload to ensure typescript is compiled with updated config values.

I'm not even using Typescript. I tried deleting that file but it keeps getting recreated by somebody.

This causes everything to reload itself in my browser.

Reproduction

See above.

Logs

8:36:21 PM [vite] changed tsconfig file detected: /Users/j_simons/projects/amp-dsce-metadata/lyrics/ui2/.svelte-kit/tsconfig.json - Clearing cache and forcing full-reload to ensure typescript is compiled with updated config values.
8:36:21 PM [vite] page reload .svelte-kit/generated/manifest.js
8:36:21 PM [vite] hmr update /src/routes/__layout.svelte
hmr update /src/components/Header.svelte
hmr update /src/components/routes/SongPage.svelte
8:36:21 PM [vite] hmr update /src/routes/lyrics/[adamid].svelte
hmr update /src/components/routes/SongPage.svelte
hmr update /src/components/Search.svelte
8:36:21 PM [vite] hmr update /src/routes/lyrics/[adamid].svelte
hmr update /src/components/routes/SongPage.svelte
hmr update /src/components/Search.svelte (x2)
8:36:21 PM [vite] hmr update /src/routes/__layout.svelte
hmr update /src/components/Header.svelte
hmr update /src/components/routes/SongPage.svelte
8:36:21 PM [vite] page reload .svelte-kit/runtime/client/singletons.js
8:36:21 PM [vite] page reload .svelte-kit/runtime/client/start.js
8:36:21 PM [vite] hmr update /src/routes/__layout.svelte
hmr update /src/components/Header.svelte
hmr update /src/components/routes/SongPage.svelte
hmr update /src/routes/__layout.svelte
hmr update /src/components/Header.svelte
hmr update /src/components/routes/SongPage.svelte
8:36:21 PM [vite] page reload .svelte-kit/runtime/paths.js


### System Info

```shell
macOS

Severity

blocking all usage of SvelteKit

Additional Information

No response

Activity

  1. jp-simons commented on Mar 22, 2022

    @jp-simons
    ContributorAuthor

    Looks like there's a new warning I didn't notice:

    Your jsconfig.json should extend the configuration generated by SvelteKit:
    {
      "extends": "./.svelte-kit/tsconfig.json"
    }
    

    Updating to that seemed to resolve.

  2. jp-simons commented on Mar 30, 2022

    @jp-simons
    ContributorAuthor

    Hmm, this is back now. Something is writing to tsconfig.json over and over and over, not sure why. I'm digging around in the write_tsconfig code now.

  3. jp-simons commented on Mar 30, 2022

    @jp-simons
    ContributorAuthor

    Idk, I messed with the permissions on tsconfig.json and now it's working again. If I get a good repro case in the future I'll reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions