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: contributing/core/vscode-debugger.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,4 +24,4 @@ To see the changes you make to the Next.js codebase during development, you can
24
24
25
25
When developing/debugging Next.js, you can set breakpoints anywhere in the `packages/next` source code that will stop the debugger at certain locations so you can examine the behavior. Read more about [breakpoints in the VS Code documentation](https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_breakpoints).
26
26
27
-
To ensure that the original names are displayed in the "Variables" section, build the Next.js source code with `NEXT_SERVER_EVAL_SOURCE_MAPS=1`. This is automatically applied when using `pnpm dev`.
27
+
To ensure that the original names are displayed in the "Variables" section, build the Next.js source code with `NEXT_SERVER_NO_MANGLE=1`. This is automatically applied when using `pnpm dev`.
describe('react-dom/server in React Server environment',()=>{
15
16
constdependencies=(globalasany).isNextDeploy
16
17
? // `link` is incompatible with the npm version used when this test is deployed
@@ -266,7 +267,7 @@ describe('react-dom/server in React Server environment', () => {
266
267
)
267
268
268
269
if(isTurbopack){
269
-
expect(browser).toDisplayRedbox(`
270
+
awaitexpect(browser).toDisplayRedbox(`
270
271
{
271
272
"description": "Ecmascript file had an error",
272
273
"environmentLabel": null,
@@ -278,11 +279,41 @@ describe('react-dom/server in React Server environment', () => {
278
279
"stack": [],
279
280
}
280
281
`)
282
+
}elseif(isRspack){
283
+
awaitexpect(browser).toDisplayRedbox(`
284
+
{
285
+
"description": " × Module build failed:",
286
+
"environmentLabel": null,
287
+
"label": "Build Error",
288
+
"source": "<FIXME-nextjs-internal-source>
289
+
× Module build failed:
290
+
╰─▶ × Error: x You're importing a component that imports react-dom/server. To fix it, render or return the content directly as a Server Component instead for perf and security.
│ 3 | import ReactDOMServerEdgeDefault from 'react-dom/server'
297
+
│ \`----
298
+
│ x You're importing a component that imports react-dom/server. To fix it, render or return the content directly as a Server Component instead for perf and security.
"description": " x You're importing a component that imports react-dom/server. To fix it, render or return the content directly as a Server Component instead for perf and security.",
288
319
"environmentLabel": null,
@@ -397,6 +428,33 @@ describe('react-dom/server in React Server environment', () => {
╰─▶ × Error: x You're importing a component that imports react-dom/server. To fix it, render or return the content directly as a Server Component instead for perf and security.
│ 3 | import ReactDOMServerNodeDefault from 'react-dom/server'
444
+
│ \`----
445
+
│ x You're importing a component that imports react-dom/server. To fix it, render or return the content directly as a Server Component instead for perf and security.
0 commit comments