TypeScript
TypeScript could not find the referenced property on the current type
TypeScript could not prove that the current value has the property being accessed, so it blocked the property lookup.
TypeScript
TypeScript could not prove that the current value has the property being accessed, so it blocked the property lookup.
Observed message
error TS2339: Property 'X' does not exist on type 'Y'.
Why it happens
How to fix it
Official reference
TypeScript Handbook: Everyday TypesRelated errors
Explore more