{"record":{"id":"d58ed5d536491cfa","repo":"vercel/next.js","slug":"rspack-core-is-not-available-please-make-sure-n","errorCode":null,"errorMessage":"@rspack/core is not available. Please make sure `next-rspack` is correctly installed.","messagePattern":"@rspack/core is not available\\. Please make sure `next-rspack` is correctly installed\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/next/src/shared/lib/get-rspack.ts","lineNumber":10,"sourceCode":"import { warnOnce } from '../../build/output/log'\n\nexport function getRspackCore() {\n  warnRspack()\n  try {\n    // eslint-disable-next-line @next/internal/typechecked-require\n    return require('next-rspack/rspack-core')\n  } catch (e) {\n    if (e instanceof Error && 'code' in e && e.code === 'MODULE_NOT_FOUND') {\n      throw new Error(\n        '@rspack/core is not available. Please make sure `next-rspack` is correctly installed.'\n      )\n    }\n\n    throw e\n  }\n}\n\nfunction warnRspack() {\n  if (process.env.__NEXT_TEST_MODE) {\n    return\n  }\n  warnOnce(\n    `\\`next-rspack\\` is currently experimental. It's not an official Next.js plugin, and is supported by the Rspack team in partnership with Next.js. Help improve Next.js and Rspack by providing feedback at https://github.com/vercel/next.js/discussions/77800`\n  )\n}\n","sourceCodeStart":1,"sourceCodeEnd":27,"githubUrl":"https://github.com/vercel/next.js/blob/0eb377541648e63402a47b38fee00a8d0ce8f8f1/packages/next/src/shared/lib/get-rspack.ts#L1-L27","documentation":"Module-resolution failure in getRspackCore: requiring next-rspack/rspack-core failed with MODULE_NOT_FOUND. The optional rspack integration package is absent from the project, so the getter replaces the missing export with a clear installation error; any other require error is rethrown untouched.","triggerScenarios":"Requiring @rspack/core fails when loading next-rspack.","commonSituations":"next-rspack is used but @rspack/core is not installed or is broken.","solutions":["Install next-rspack and @rspack/core, or remove rspack usage."],"exampleFix":null,"handlingStrategy":"fallback","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"}