Error AtlasError Documentation and Resolution

Type is missing the following properties from the target type

Type '{0}' is missing the following properties from type '{1}': {2}

TypeScript found a value whose shape is missing multiple required properties from the target type.

TS2739build
Type '{0}' is missing the following properties from type '{1}': {2}
  • An object or class instance is being assigned to a type with additional required members.
  • A partial or placeholder value is being used where a fully populated value is expected.
  • A component or function contract expects more properties than the current caller provides.
  1. Add the missing required properties to the value.
  2. Use a partial or narrower type when incomplete values are valid.
  3. Review interfaces and call sites so both sides agree on the required shape.
TypeScript Handbook: Object Types
TS2739 Type is missing the following properties from type: causes and fixes | Error Atlas