vercel/next.js · error
Your project has `@next/font` installed as a dependency, ple
Error message
Your project has `@next/font` installed as a dependency, please use the built-in `next/font` instead. The `@next/font` package will be removed in Next.js 14. You can migrate by running `${command} @next/codemod@latest built-in-next-font .`. Read more: https://nextjs.org/docs/messages/built-in-next-font What it means
Error "Your project has `@next/font` installed as a dependency, please use the built-in `next/font` instead. The `@next/font` package will be removed in Next.js 14. You can migrate by running `${command} @next/codemod@latest built-in-next-font .`. Read more: https://nextjs.org/docs/messages/built-in-next-font" thrown in vercel/next.js.
Source
Thrown at packages/next/src/cli/next-dev.ts:256
'Your project has both `sass` and `node-sass` installed as dependencies, but should only use one or the other. ' +
'Please remove the `node-sass` dependency from your project. ' +
' Read more: https://nextjs.org/docs/messages/duplicate-sass'
)
}
if (!skipOnReboot) {
const { dependencies, devDependencies } = await getDependencies({
cwd: dir,
})
// Warn if @next/font is installed as a dependency. Ignore `workspace:*` to not warn in the Next.js monorepo.
if (
dependencies['@next/font'] ||
(devDependencies['@next/font'] &&
devDependencies['@next/font'] !== 'workspace:*')
) {
const command = getNpxCommand(dir)
Log.warn(
'Your project has `@next/font` installed as a dependency, please use the built-in `next/font` instead. ' +
'The `@next/font` package will be removed in Next.js 14. ' +
`You can migrate by running \`${command} @next/codemod@latest built-in-next-font .\`. Read more: https://nextjs.org/docs/messages/built-in-next-font`
)
}
}
}
let port = options.port
if (isPortIsReserved(port)) {
printAndExit(getReservedPortExplanation(port), 1)
}
// If neither --port nor PORT were specified, it's okay to retry new ports.
const allowRetry = portSource === 'default'
// We do not set a default host value here to prevent breakingView on GitHub (pinned to 0eb3775416)
Solutions
- Uninstall `@next/font` and use the built-in `next/font` instead.
- Run the codemod: `npx @next/codemod@latest built-in-next-font .`
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at packages/next/src/cli/next-dev.ts:256 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of vercel/next.js@0eb3775416 (2026-08-19).
Data as JSON: /api/errors/4bb4ef6c41ffc895.
Report an issue: GitHub.