fetch-event-source icon indicating copy to clipboard operation
fetch-event-source copied to clipboard

Weird Vite chunk map sources

Open IamFastre opened this issue 5 months ago • 0 comments
trafficstars

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

IamFastre avatar Jun 16 '25 03:06 IamFastre