{"record":{"id":"22cfa2ad95453a3c","repo":"facebook/react","slug":"could-not-find-the-module-id-in-the-react-ser","errorCode":null,"errorMessage":"Could not find the module \"${id}\" in the React Server Manifest. This is probably a bug in the React Server Components bundler.","messagePattern":"Could not find the module \"(.+?)\" in the React Server Manifest\\. This is probably a bug in the React Server Components bundler\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/react-server-dom-turbopack/src/client/ReactFlightClientConfigBundlerTurbopack.js","lineNumber":129,"sourceCode":"  id: ServerReferenceId,\n): ClientReference<T> {\n  let name = '';\n  let resolvedModuleData = bundlerConfig[id];\n  if (resolvedModuleData) {\n    // The potentially aliased name.\n    name = resolvedModuleData.name;\n  } else {\n    // We didn't find this specific export name but we might have the * export\n    // which contains this name as well.\n    // TODO: It's unfortunate that we now have to parse this string. We should\n    // probably go back to encoding path and name separately on the client reference.\n    const idx = id.lastIndexOf('#');\n    if (idx !== -1) {\n      name = id.slice(idx + 1);\n      resolvedModuleData = bundlerConfig[id.slice(0, idx)];\n    }\n    if (!resolvedModuleData) {\n      throw new Error(\n        'Could not find the module \"' +\n          id +\n          '\" in the React Server Manifest. ' +\n          'This is probably a bug in the React Server Components bundler.',\n      );\n    }\n  }\n  if (resolvedModuleData.async) {\n    // If the module is marked as async in a Client Reference, we don't actually care.\n    // What matters is whether the consumer wants to unwrap it or not.\n    // For Server References, it is different because the consumer is completely internal\n    // to the bundler. So instead of passing it to each reference we can mark it in the\n    // manifest.\n    return [\n      resolvedModuleData.id,\n      resolvedModuleData.chunks,\n      name,\n      1 /* async */,","sourceCodeStart":111,"sourceCodeEnd":147,"githubUrl":"https://github.com/facebook/react/blob/eafeac097ba51e1eab809c07102126bd5f8e5425/packages/react-server-dom-turbopack/src/client/ReactFlightClientConfigBundlerTurbopack.js#L111-L147","documentation":"Before a server function reference can be used, resolveServerReference splits the '#name' suffix off the id and looks the module up in the turbopack server manifest on the client. A miss means the client bundle's manifest predates the action — the id the server embedded is not known to this client compilation.","triggerScenarios":"Calling a newly added or renamed server action from a stale client bundle (tab open across a redeploy, HMR that did not refresh the manifest), or a server/client manifest pair from different builds.","commonSituations":"Adding a server action and hot-reloading without a full page reload; rolling deploys where old client HTML calls new server actions; dev-server cache reuse.","solutions":["Hard-reload the client so the fresh manifest is loaded","Restart the dev server so server and client manifests regenerate together","Deploy server and client from a single build so action ids always match"],"exampleFix":"# before\n# add new server action, browser tab still on old bundle -> call fails\n\n# after\n$ rm -rf .next && npm run dev   # then hard-reload the page (Cmd+Shift+R)","handlingStrategy":"validation","validationCode":"import {bundlerConfig} from './turbopack-server-manifest';\nfunction serverReferenceResolves(id) {\n  const moduleId = id.slice(0, id.lastIndexOf('#')) || id;\n  return Boolean(bundlerConfig[moduleId]);\n}\nif (!serverReferenceResolves(actionId)) {\n  throw new Error('Server manifest stale; reload the client bundle');\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Hard-reload the page after adding or renaming server actions","Restart the dev server when manifests fall out of sync","Deploy server and client from one atomic build"],"tags":["server-actions","turbopack","bundler","manifest","cache-invalidation"],"backgroundTag":"bundler-manifest-out-of-sync","analyzedSha":"eafeac097ba51e1eab809c07102126bd5f8e5425","analyzedAt":"2026-08-21T22:01:08.818Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}