Closed Bug 1908463 Opened 1 year ago Closed 4 months ago

Sourcemap error for turbopack:// URL

Categories

(DevTools :: Debugger, defect, P3)

Firefox 129
defect

Tracking

(firefox143 fixed)

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: github.leah, Assigned: bomsy)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:129.0) Gecko/20100101 Firefox/129.0

Steps to reproduce:

Start the next.js dev server with turbopack (next dev --turbo)

Actual results:

Source map error: Error: Invalid URL: turbopack://[project]/packages/next/dist/compiled/process/browser.js
Resource URL: http://localhost:3000/_next/static/chunks/%5Broot%20of%20the%20server%5D__011649._.js
Source Map URL: %5Broot%20of%20the%20server%5D__011649._.js.map

Expected results:

It should display the source mapped sources in the tree like it does for webpack.

Should just need a small change here
https://searchfox.org/mozilla-central/source/devtools/client/debugger/src/utils/sources-tree/getURL.js

The Bugbug bot thinks this bug should belong to the 'DevTools::Debugger' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Debugger
Product: Firefox → DevTools
Type: enhancement → defect
Summary: Add support for turbopack:// URL → Sourcemap error for turbopack:// URL

Bomsy can you try to reproduce the issue.

We should fix 2 things here:

  • make sure we have a proper fallback when we don't recognize the protocol
  • potentially add turbo to the list linked above, or come up with a new mechanism to add new libraries dynamically (eg pref or remote settings)
Severity: -- → S3
Flags: needinfo?(hmanilla)
Priority: -- → P2
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: P2 → P3
Assignee: nobody → hmanilla
Attachment #9503518 - Attachment description: WIP: Bug 1908463 - [devtools] Display the correct tree structure for bundle libraries → Bug 1908463 - [devtools] Display the correct tree structure for bundle libraries r=#devtools
Status: NEW → ASSIGNED
Flags: needinfo?(hmanilla)
Pushed by hmanilla@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f9a9af7646c0 https://hg.mozilla.org/integration/autoland/rev/a8a8028addc8 [devtools] Display the correct tree structure for bundle libraries r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
QA Whiteboard: [qa-triage-done-c144/b143]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: