Open Bug 1636216 Opened 4 years ago Updated 4 years ago

TypeError isn't always source-mapped

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: Harald, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

Attached image image.png (deleted) —

What were you doing?

  1. Open Console on https://25d5g.csb.app/ and see first TypeError entry

What happened?

First TypeError is not source-mapped in Firefox (works in Chrome). Second TypeError is source-mapped.

What should have happened?

All TypeError logs are source-mapped.

Anything else we should know?

Codesandbox's proxy console and React's error overlay add some complexity here; but this should still "just work".

Similar issue for Angular: https://wcu9o.csb.app/ . Firefox links to https://wcu9o.csb.app/src/app/app.component.ts which is the right TS file; while Chrome loads the right TS file for https://wcu9o.csb.app/src/app/app.component.ts

Nicolas, is that for Console or a Debugger source map issue?

Flags: needinfo?(nchevobbe)
Attached image angular error (deleted) —

if there's a problem, it's probably in the sourcemap worker.
But I'm not sure what is expected here?

Flags: needinfo?(nchevobbe)

Harald, could you please clarify exactly what behavior you're seeing that we need to address? Given the large screenshot, it's very hard for me to tell which part you're referring to. I think there's also probably a typo in

Firefox links to https://wcu9o.csb.app/src/app/app.component.ts which is the right TS file; while Chrome loads the right TS file for https://wcu9o.csb.app/src/app/app.component.ts

I notice when I click on a file, it sometimes takes me to the generated code instead of the original code, is that what you're referring to?

Flags: needinfo?(hkirschner)

I notice when I click on a file, it sometimes takes me to the generated code instead of the original code, is that what you're referring to?

Yes, that seems to be the main issue here.

(I will try to annotate screenshots better next time!)

Flags: needinfo?(hkirschner)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: