{"record":{"id":"fc212da1af13a0ca","repo":"vercel/next.js","slug":"your-project-has-both-sass-and-node-sass-insta","errorCode":null,"errorMessage":"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","messagePattern":"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","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/cli/next-dev.ts","lineNumber":237,"sourceCode":"  }\n\n  if (options.experimentalCpuProf) {\n    Log.info(\n      `CPU profiling enabled. Profile will be saved to .next-profiles/ on exit (Ctrl+C).`\n    )\n  }\n\n  async function preflight(skipOnReboot: boolean) {\n    const { getPackageVersion, getDependencies } = (await Promise.resolve(\n      require('../lib/get-package-version') as typeof import('../lib/get-package-version')\n    )) as typeof import('../lib/get-package-version')\n\n    const [sassVersion, nodeSassVersion] = await Promise.all([\n      getPackageVersion({ cwd: dir, name: 'sass' }),\n      getPackageVersion({ cwd: dir, name: 'node-sass' }),\n    ])\n    if (sassVersion && nodeSassVersion) {\n      Log.warn(\n        '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)","sourceCodeStart":219,"sourceCodeEnd":255,"githubUrl":"https://github.com/vercel/next.js/blob/0eb377541648e63402a47b38fee00a8d0ce8f8f1/packages/next/src/cli/next-dev.ts#L219-L255","documentation":"Error \"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\" thrown in vercel/next.js.","triggerScenarios":"Thrown at packages/next/src/cli/next-dev.ts:237 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove `node-sass` from your dependencies and keep only `sass`."],"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"}