{"record":{"id":"1c129fc98e336590","repo":"vercel/next.js","slug":"hmr-unexpected-require-request-from-disposed","errorCode":null,"errorMessage":"[HMR] unexpected require(${request}) from disposed module ${moduleId}","messagePattern":"\\[HMR\\] unexpected require\\((.+?)\\) from disposed module (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/bundles/webpack/packages/HotModuleReplacement.runtime.js","lineNumber":72,"sourceCode":"\tfunction createRequire(require, moduleId) {\n\t\tvar me = installedModules[moduleId];\n\t\tif (!me) return require;\n\t\tvar fn = function (request) {\n\t\t\tif (me.hot.active) {\n\t\t\t\tif (installedModules[request]) {\n\t\t\t\t\tvar parents = installedModules[request].parents;\n\t\t\t\t\tif (parents.indexOf(moduleId) === -1) {\n\t\t\t\t\t\tparents.push(moduleId);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tcurrentParents = [moduleId];\n\t\t\t\t\tcurrentChildModule = request;\n\t\t\t\t}\n\t\t\t\tif (me.children.indexOf(request) === -1) {\n\t\t\t\t\tme.children.push(request);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconsole.warn(\n\t\t\t\t\t\"[HMR] unexpected require(\" +\n\t\t\t\t\t\trequest +\n\t\t\t\t\t\t\") from disposed module \" +\n\t\t\t\t\t\tmoduleId\n\t\t\t\t);\n\t\t\t\tcurrentParents = [];\n\t\t\t}\n\t\t\treturn require(request);\n\t\t};\n\t\tvar createPropertyDescriptor = function (name) {\n\t\t\treturn {\n\t\t\t\tconfigurable: true,\n\t\t\t\tenumerable: true,\n\t\t\t\tget: function () {\n\t\t\t\t\treturn require[name];\n\t\t\t\t},\n\t\t\t\tset: function (value) {\n\t\t\t\t\trequire[name] = value;","sourceCodeStart":54,"sourceCodeEnd":90,"githubUrl":"https://github.com/vercel/next.js/blob/0eb377541648e63402a47b38fee00a8d0ce8f8f1/packages/next/src/bundles/webpack/packages/HotModuleReplacement.runtime.js#L54-L90","documentation":"In webpack's HMR runtime createRequire patch, when a hot module requires another module that was disposed by a hot update, this warning is logged; module parent/children bookkeeping is still updated and execution continues — it signals stale references rather than a thrown error.","triggerScenarios":"Thrown at packages/next/src/bundles/webpack/packages/HotModuleReplacement.runtime.js:72 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Do a full page reload; a disposed HMR module was required unexpectedly, usually from stale state."],"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"}