-
Notifications
You must be signed in to change notification settings - Fork 27.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source map warning on Next 15.0.3 with turbopack, Windows, Firefox #73384
Comments
I have this problem in 15.0.3 as well as on 15.1.0. If I remove the Edit: nope, that's just MUI throwing wrenches in the work again. Still, without
And
So we have a choice.
*) To me anyway |
Note that this only seems to happen in Firefox. The source maps load fine in Chrome and do not throw an error. When using Firefox, however (my default dev browser), it is over 100 requests per page load, all throwing 404 errors in the console, plus a warning for each of those errors, resulting in hundreds of lines of useless text in the console window that we have to wade through. |
This comment has been minimized.
This comment has been minimized.
I also discovered that this particular bug seems to only happen in Firefox Windows, as @pburrows said. The colon in "file://C:/file/path/sourcemap.js" gets encoded to %3A which Firefox cannot parse but Chromium can. I couldn't find a way to fix this myself in Next.js, Turbopack or Firefox (EDIT: Made a fix, see below comment) |
Quick and dirty fix: Add this code in
Add the same code to Console output These lines will need to be reinserted for every update of Next.js, when the edited js files are overwritten by npm. Anyways this is obviously a dirty fix only meant to make source maps usable right now on Windows Firefox. Still waiting for a proper fix by Turbopack devs 🙏 |
Link to the code that reproduces this issue
https://github.com/altbdoor/nextjs-sourcemap-warning-firefox-reproduction
To Reproduce
npx create-next-app -e reproduction-template
test-ground
cd test-ground
npm run dev -- --turbo
Current vs. Expected behavior
Show warning image
Should not have the warning, I suppose?
Provide environment information
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:
npm run
commandsnpm run dev
without turbopacknpm run start
after buildEdit: tried it on Windows Firefox private mode with all extensions disabled, and I still see the warning.
The text was updated successfully, but these errors were encountered: