Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
3be4c743
Commit
3be4c743
authored
Jan 13, 2026
by
Luke Sandberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove logging changes
parent
f0fbc02f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
patch-error-inspect.ts
packages/next/src/server/patch-error-inspect.ts
+0
-6
No files found.
packages/next/src/server/patch-error-inspect.ts
View file @
3be4c743
...
@@ -374,9 +374,7 @@ function getSourcemappedFrameIfPossible(
...
@@ -374,9 +374,7 @@ function getSourcemappedFrameIfPossible(
}
}
let
maybeSourceMapPayload
:
ModernSourceMapPayload
|
undefined
let
maybeSourceMapPayload
:
ModernSourceMapPayload
|
undefined
try
{
try
{
console
.
error
(
'looking up source map for '
,
sourceURL
)
const
sourceMap
=
nativeFindSourceMap
(
sourceURL
)
const
sourceMap
=
nativeFindSourceMap
(
sourceURL
)
console
.
error
(
'
\
tfound source map'
)
maybeSourceMapPayload
=
sourceMap
?.
payload
maybeSourceMapPayload
=
sourceMap
?.
payload
}
catch
(
cause
)
{
}
catch
(
cause
)
{
// We should not log an actual error instance here because that will re-enter
// We should not log an actual error instance here because that will re-enter
...
@@ -395,12 +393,10 @@ function getSourcemappedFrameIfPossible(
...
@@ -395,12 +393,10 @@ function getSourcemappedFrameIfPossible(
// source map.
// source map.
return
createUnsourcemappedFrame
(
frame
)
return
createUnsourcemappedFrame
(
frame
)
}
}
console
.
error
(
'1: maybeSourceMapPayload='
,
maybeSourceMapPayload
)
if
(
maybeSourceMapPayload
===
undefined
)
{
if
(
maybeSourceMapPayload
===
undefined
)
{
maybeSourceMapPayload
=
bundlerFindSourceMapPayload
(
sourceURL
)
maybeSourceMapPayload
=
bundlerFindSourceMapPayload
(
sourceURL
)
}
}
console
.
error
(
'2: maybeSourceMapPayload='
,
maybeSourceMapPayload
)
if
(
maybeSourceMapPayload
===
undefined
)
{
if
(
maybeSourceMapPayload
===
undefined
)
{
return
createUnsourcemappedFrame
(
frame
)
return
createUnsourcemappedFrame
(
frame
)
}
}
...
@@ -412,13 +408,11 @@ function getSourcemappedFrameIfPossible(
...
@@ -412,13 +408,11 @@ function getSourcemappedFrameIfPossible(
// relative paths but is actually wrong (the chunk and sourcemap have different content hashes).
// relative paths but is actually wrong (the chunk and sourcemap have different content hashes).
// We are using the node API to read the sourcemap and it doesn't give us access to the URI.
// We are using the node API to read the sourcemap and it doesn't give us access to the URI.
const
sourceMapURL
=
sourceURL
+
'.map'
const
sourceMapURL
=
sourceURL
+
'.map'
console
.
error
(
'about to parse sourcemap for '
,
sourceURL
)
sourceMapConsumer
=
new
SyncSourceMapConsumer
(
sourceMapConsumer
=
new
SyncSourceMapConsumer
(
sourceMapPayload
,
sourceMapPayload
,
// @ts-expect-error: our typings don't include this parameter but it is here.
// @ts-expect-error: our typings don't include this parameter but it is here.
sourceMapURL
sourceMapURL
)
)
console
.
error
(
'
\
tparsed source map'
)
}
catch
(
cause
)
{
}
catch
(
cause
)
{
// We should not log an actual error instance here because that will re-enter
// We should not log an actual error instance here because that will re-enter
// this codepath during error inspection and could lead to infinite recursion.
// this codepath during error inspection and could lead to infinite recursion.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment