{"record":{"id":"4bb4ef6c41ffc895","repo":"vercel/next.js","slug":"your-project-has-next-font-installed-as-a-depen","errorCode":null,"errorMessage":"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","messagePattern":"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 `(.+?) @next/codemod@latest built-in-next-font \\.`\\. Read more: https://nextjs\\.org/docs/messages/built-in-next-font","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/cli/next-dev.ts","lineNumber":256,"sourceCode":"        'Your project has both `sass` and `node-sass` installed as dependencies, but should only use one or the other. ' +\n          'Please remove the `node-sass` dependency from your project. ' +\n          ' Read more: https://nextjs.org/docs/messages/duplicate-sass'\n      )\n    }\n\n    if (!skipOnReboot) {\n      const { dependencies, devDependencies } = await getDependencies({\n        cwd: dir,\n      })\n\n      // Warn if @next/font is installed as a dependency. Ignore `workspace:*` to not warn in the Next.js monorepo.\n      if (\n        dependencies['@next/font'] ||\n        (devDependencies['@next/font'] &&\n          devDependencies['@next/font'] !== 'workspace:*')\n      ) {\n        const command = getNpxCommand(dir)\n        Log.warn(\n          'Your project has `@next/font` installed as a dependency, please use the built-in `next/font` instead. ' +\n            'The `@next/font` package will be removed in Next.js 14. ' +\n            `You can migrate by running \\`${command} @next/codemod@latest built-in-next-font .\\`. Read more: https://nextjs.org/docs/messages/built-in-next-font`\n        )\n      }\n    }\n  }\n\n  let port = options.port\n\n  if (isPortIsReserved(port)) {\n    printAndExit(getReservedPortExplanation(port), 1)\n  }\n\n  // If neither --port nor PORT were specified, it's okay to retry new ports.\n  const allowRetry = portSource === 'default'\n\n  // We do not set a default host value here to prevent breaking","sourceCodeStart":238,"sourceCodeEnd":274,"githubUrl":"https://github.com/vercel/next.js/blob/0eb377541648e63402a47b38fee00a8d0ce8f8f1/packages/next/src/cli/next-dev.ts#L238-L274","documentation":"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.","triggerScenarios":"Thrown at packages/next/src/cli/next-dev.ts:256 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Uninstall `@next/font` and use the built-in `next/font` instead.","Run the codemod: `npx @next/codemod@latest built-in-next-font .`"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0eb377541648e63402a47b38fee00a8d0ce8f8f1","analyzedAt":"2026-08-19T02:10:13.922Z","contentChangedAt":"2026-08-19T02:10:13.922Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}