Azure / Azure/fetch-event-source

Weird Vite chunk map sources

Open
#99 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.9k
Forks
196
PR merge metrics
No merged PRs in 30d

Description

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

```meta
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

```jsonc
// 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.