TS4114: This member must have an 'override' modifier
Error message
This member must have an 'override' modifier because it is declared in the base class.
Quick summary
You are overriding a base class method but forgot the 'override' keyword. This is required when noImplicitOverride is enabled.
Why this happens
noImplicitOverride is enabled in tsconfig
Subclass method has the same name as a base class method
Missing 'override' keyword on the subclass method
Minimal example
✗ Broken code
class Base { greet() { return 'Hello'; } }
class Child extends Base {
greet() { return 'Hi'; } // TS4114
}✓ Fixed code
class Base { greet() { return 'Hello'; } }
class Child extends Base {
override greet() { return 'Hi'; } // ✅
}Add the 'override' keyword to the subclass method.
How to diagnose
Check if the method name exists in the base class
Verify that noImplicitOverride is enabled
How to fix
Add the 'override' keyword before the method name
Rename the method if it wasn't intended to override