{"id":"30a7476e44cc3c4f","repo":"webpack/webpack","slug":"abstract-method-must-be-overridden-30a747","errorCode":null,"errorMessage":"Abstract method Must be overridden.","messagePattern":"Abstract method Must be overridden\\.","errorType":"exception","errorClass":"AbstractMethodError","httpStatus":null,"severity":"error","filePath":"lib/RuntimeModule.js","lineNumber":214,"sourceCode":"\tsize(type) {\n\t\ttry {\n\t\t\tconst source = this.getGeneratedCode();\n\t\t\treturn source ? source.length : 0;\n\t\t} catch (_err) {\n\t\t\treturn 0;\n\t\t}\n\t}\n\n\t/* istanbul ignore next */\n\t/**\n\t * Generates runtime code for this runtime module.\n\t * @abstract\n\t * @returns {string | null} runtime code\n\t */\n\tgenerate() {\n\t\tconst AbstractMethodError = require(\"./errors/AbstractMethodError\");\n\n\t\tthrow new AbstractMethodError();\n\t}\n\n\t/**\n\t * Gets generated code.\n\t * @returns {string | null} runtime code\n\t */\n\tgetGeneratedCode() {\n\t\tif (this._cachedGeneratedCode) {\n\t\t\treturn this._cachedGeneratedCode;\n\t\t}\n\t\treturn (this._cachedGeneratedCode = this.generate());\n\t}\n\n\t/**\n\t * Returns true, if the runtime module should get it's own scope.\n\t * @returns {boolean} true, if the runtime module should get it's own scope\n\t */\n\tshouldIsolate() {","sourceCodeStart":196,"sourceCodeEnd":232,"githubUrl":"https://github.com/webpack/webpack/blob/318421ea8ac81371f5171236a6efb63675576528/lib/RuntimeModule.js#L196-L232","documentation":"Error \"Abstract method Must be overridden.\" thrown in webpack/webpack.","triggerScenarios":"Thrown at lib/RuntimeModule.js:214 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Implement the abstract method in the RuntimeModule subclass; this error indicates a subclass failed to override a required method."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"318421ea8ac81371f5171236a6efb63675576528","analyzedAt":"2026-08-03T19:39:56.731Z","schemaVersion":2}