You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/next/errors.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -946,5 +946,6 @@
946
946
"945": "createNodeStreamFromChunks cannot be used in the edge runtime",
947
947
"946": "Failed to deserialize errors.",
948
948
"947": "Expected `sendErrorsToBrowser` to be defined in renderOpts.",
949
-
"948": "Failed to serialize errors."
949
+
"948": "Failed to serialize errors.",
950
+
"949": "Route %s errored during %s. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled.\n\nOriginal Error: %s"
// We don't need to print well-known Next.js errors.
9
15
if(getDigestForWellKnownError(thrownValue)){
@@ -28,7 +34,7 @@ export function printDebugThrownValueForProspectiveRender(
28
34
conststackStart=originalErrorStack.indexOf('\n')
29
35
if(stackStart>-1){
30
36
consterror=newError(
31
-
`Route ${route} errored during the prospective render. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled.
37
+
`Route ${route} errored during ${phase}. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled.
32
38
33
39
Original Error: ${message}`
34
40
)
@@ -43,14 +49,14 @@ Original Error: ${message}`
43
49
}
44
50
45
51
if(message){
46
-
console.error(`Route ${route} errored during the prospective render. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled. No stack was provided.
52
+
console.error(`Route ${route} errored during ${phase}. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled. No stack was provided.
47
53
48
54
Original Message: ${message}`)
49
55
return
50
56
}
51
57
52
58
console.error(
53
-
`Route ${route} errored during the prospective render. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled. The thrown value is logged just following this message`
59
+
`Route ${route} errored during ${phase}. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled. The thrown value is logged just following this message`
0 commit comments