{"record":{"id":"2157d62cfbc37e9b","repo":"vercel/next.js","slug":"rspack-core-is-not-available-please-make-sure-th","errorCode":null,"errorMessage":"@rspack/core is not available. Please make sure the appropriate Next.js plugin is installed.","messagePattern":"@rspack/core is not available\\. Please make sure the appropriate Next\\.js plugin is installed\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/next/src/bundles/webpack/packages/webpack.js","lineNumber":44,"sourceCode":"    // eslint-disable-next-line import/no-extraneous-dependencies\n    StringXor: require('webpack/lib/util/StringXor'),\n    // eslint-disable-next-line import/no-extraneous-dependencies\n    NormalModule: require('webpack/lib/NormalModule'),\n    // eslint-disable-next-line import/no-extraneous-dependencies\n    sources: require('webpack').sources,\n    // eslint-disable-next-line import/no-extraneous-dependencies\n    webpack: require('webpack'),\n  })\n} else {\n  Object.assign(exports, require('./bundle5')())\n}\n\nfunction getRspackCore() {\n  try {\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 the appropriate Next.js plugin is installed.'\n      )\n    }\n\n    throw e\n  }\n}\n","sourceCodeStart":26,"sourceCodeEnd":52,"githubUrl":"https://github.com/vercel/next.js/blob/0eb377541648e63402a47b38fee00a8d0ce8f8f1/packages/next/src/bundles/webpack/packages/webpack.js#L26-L52","documentation":"getRspackCore in the bundled webpack shim: resolving the next-rspack/rspack-core module failed with MODULE_NOT_FOUND, so @rspack/core was remapped onto an error-throwing getter. It means the optional rspack peer integration is not installed even though code path expects it.","triggerScenarios":"The webpack bundle requires @rspack/core but the package is not installed.","commonSituations":"Using next-rspack or a plugin that depends on @rspack/core without installing it in the project.","solutions":["Install @rspack/core and add the next-rspack plugin, or remove rspack usage from your setup."],"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-23T08:17:48.524Z"}