-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Closed as not planned
Closed as not planned
Copy link
Labels
TurbopackRelated to Turbopack with Next.js.Related to Turbopack with Next.js.linear: turbopackConfirmed issue that is tracked by the Turbopack team.Confirmed issue that is tracked by the Turbopack team.lockedplease add a complete reproductionPlease add a complete reproduction.Please add a complete reproduction.staleThe issue has not seen recent activity.The issue has not seen recent activity.
Description
Link to the code that reproduces this issue
https://github.com/altbdoor/nextjs-sourcemap-warning-firefox-reproduction
To Reproduce
- Create a base reproduction template with
npx create-next-app -e reproduction-template
- Name the project as
test-ground
cd test-ground
npm run dev -- --turbo
- Open http://localhost:3000 in Windows Firefox 133.0 (64-bit)
- Get warning on source map error
Current vs. Expected behavior
Source map error: Error: Invalid URL: file://C%3A/Users/carbon/projects/test-ground/node_modules/next/src/client/app-bootstrap.ts
Stack in the worker:URLImpl@resource://devtools/client/shared/vendor/whatwg-url.js:22:13
setup@resource://devtools/client/shared/vendor/whatwg-url.js:537:14
URL@resource://devtools/client/shared/vendor/whatwg-url.js:246:18
createSafeHandler/<@resource://devtools/client/shared/vendor/source-map/lib/util.js:181:17
computeSourceURL@resource://devtools/client/shared/vendor/source-map/lib/util.js:437:22
BasicSourceMapConsumer/</that._absoluteSources<@resource://devtools/client/shared/vendor/source-map/lib/source-map-consumer.js:213:23
BasicSourceMapConsumer/<@resource://devtools/client/shared/vendor/source-map/lib/source-map-consumer.js:212:33
Resource URL: http://localhost:3000/_next/static/chunks/node_modules_next_dist_client_239c40._.js
Source Map URL: node_modules_next_dist_client_239c40._.js.map
Should not have the warning, I suppose?
Provide environment information
Operating System:
Platform: win32
Arch: x64
Version: Windows 11 Pro
Available memory (MB): 16206
Available CPU cores: 12
Binaries:
Node: 22.11.0
npm: 10.9.0
Yarn: N/A
pnpm: N/A
Relevant Packages:
next: 15.0.4-canary.32 // Latest available version is detected (15.0.4-canary.32).
eslint-config-next: N/A
react: 19.0.0-rc-b01722d5-20241114
react-dom: 19.0.0-rc-b01722d5-20241114
typescript: 5.3.3
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
This warning did not appear for:
- Windows Edge 131.0.2903.70 (Official build) (64-bit), all
npm run
commands - Windows Firefox 133.0 (64-bit),
npm run dev
without turbopack - Windows Firefox 133.0 (64-bit),
npm run start
after build
Edit: tried it on Windows Firefox private mode with all extensions disabled, and I still see the warning.
mk48, ghostrepo00, DenysVuika, quadristan, pburrows and 18 more
Metadata
Metadata
Assignees
Labels
TurbopackRelated to Turbopack with Next.js.Related to Turbopack with Next.js.linear: turbopackConfirmed issue that is tracked by the Turbopack team.Confirmed issue that is tracked by the Turbopack team.lockedplease add a complete reproductionPlease add a complete reproduction.Please add a complete reproduction.staleThe issue has not seen recent activity.The issue has not seen recent activity.