Skip to content

Commit 38ffad4

Browse files
committed
fix a lint issue
1 parent 4a094c8 commit 38ffad4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/next/errors.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,5 +824,6 @@
824824
"823": "Timeout waiting for error state from frontend. The browser may not be responding to HMR messages.",
825825
"824": "URL is required in MCP browser response. This is a bug in Next.js.",
826826
"825": "Timeout waiting for response from frontend. The browser may not be responding to HMR messages.",
827-
"826": "unknown bundler: %s"
827+
"826": "unknown bundler: %s",
828+
"827": "Pass either `webpack` or `turbopack`, not both."
828829
}

packages/next/src/server/next.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,10 +542,10 @@ function createServer(
542542
(options.turbo || options.turbopack || process.env.IS_TURBOPACK_TEST)
543543
) {
544544
if (options.webpack) {
545-
throw new Error('Pass either webpack or turbopack, not both.')
545+
throw new Error('Pass either `webpack` or `turbopack`, not both.')
546546
}
547547
process.env.TURBOPACK = '1'
548-
} else if (!options.webpack) {
548+
} else if (!options?.webpack) {
549549
// If no options are set we default to turbopack
550550
process.env.TURBOPACK = 'auto'
551551
}

0 commit comments

Comments
 (0)