There is a Bug in Microsoft Edge Sourcemap Handling

VikR0001 0 Reputation points
2023-08-13T18:08:25.65+00:00

Edge appears to have a bug in some stack trace displays. In this example, the trace claims the bug in is in clsx, on a call to a function that clsx doesn't call.

Here's the stack trace:Screenshot 2023-08-10 at 10.27.26 AM

The stack trace claims the bug is on a call to the ApolloGraphQL function storeWriter.writeToStore located in clsx at line 1, position 374. But clsx doesn't interact with ApolloGraphQL at all.

I confirmed this with the developer of clsx (12,286,286 weekly downloads). He adds this observation.

There’s no Array.forEach in clsx either. ...Definitely a sourcemap issue, as shown by the green arrow in your screenshot

The bug happens when my app runs an ApolloGraphQL function, but the stack trace (and it goes on about 5 times as long as the part of it shown in the screen shot) never points to a line in my own code.

My code runs without error in Chrome, Firefox, and Safari, so the existence of a bug at all may be due to an error in Edge rather than in my code.

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,542 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.