Skip to content

Commit 1db23de

Browse files
committed
Fix a silly mista
1 parent e240292 commit 1db23de

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/next/src/cli/next-build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { existsSync } from 'fs'
55
import { italic } from '../lib/picocolors'
66
import build from '../build'
77
import { warn } from '../build/output/log'
8-
import { printAndExit } from '../server/lib/utils'
8+
import { parseBundlerArgs, printAndExit } from '../server/lib/utils'
99
import isError from '../lib/is-error'
1010
import { getProjectDir } from '../lib/get-project-dir'
1111
import { enableMemoryDebuggingMode } from '../lib/memory/startup'

packages/next/src/lib/turbopack-warning.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,11 @@ export async function validateTurboNextConfig({
165165
if (process.env.TURBOPACK === 'auto' && hasWebpackConfig && !hasTurboConfig) {
166166
const logMethod = isDev ? Log.warn : Log.error
167167
// In a production build with auto-detected Turbopack, we want to fail the build.
168-
logMethod(`Webpack is configured while Turbopack is not.`)
169168
logMethod(
170-
`See instructions if you need to configure Turbopack:\n https://nextjs.org/docs/app/api-reference/next-config-js/turbopack`
169+
`Webpack is configured while Turbopack is not. This may be a mistake.`
170+
)
171+
logMethod(
172+
`To configure Turbopack, see:\n https://nextjs.org/docs/app/api-reference/next-config-js/turbopack`
171173
)
172174
logMethod(
173175
`TIP: Silence this ${isDev ? 'warning' : 'error'} by passing the --turbopack or --webpack flag explicitly.`

0 commit comments

Comments
 (0)