Skip to content

Weird Vite chunk map sources #99

Description

@IamFastre

I keep getting this annoying error message on my SvelteKit (with Vite) app through the svelte-sse package, but the package itself doesn't have anything to do with it as I checked

Not found: /node_modules/@microsoft/fetch-event-source/src/parse.ts
Not found: /node_modules/@microsoft/fetch-event-source/src/fetch.ts

I did some investigating and found that this chunk map is generated

// node_modules/.vite/deps/chunk-6H7Z5HH6.js.map
{
  "version": 3,
  "sources": ["../../@microsoft/fetch-event-source/src/parse.ts", "../../@microsoft/fetch-event-source/src/fetch.ts"],
  "sourcesContent": [null, null],
  "mappings":  /* long string */,
  "names": ["_a"]
}

which doesn't exist, this causes my app to try to reoptimize the dependencies, so some unnecessary server restarts
not sure if the issue should be here or at Vite's repo, but I'mma start here

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