diff --git a/web/debug-require-webpack-plugin.ts b/web/debug-require-webpack-plugin.ts index d0233b2a9b..1547d5cfda 100644 --- a/web/debug-require-webpack-plugin.ts +++ b/web/debug-require-webpack-plugin.ts @@ -89,6 +89,9 @@ export default class DebugRequirePlugin implements WebpackPluginInstance { (m) => { if (m instanceof NormalModule) { const id = compilation.chunkGraph.getModuleId(m); + if (id === null) { + return false; + } if (m.resource === debugRequirePath) { hasDebugRequire = true; }