TS2551: Property does not exist on type. Did you mean...?

Property '<name>' does not exist on type '<type>'. Did you mean '<suggestion>'?

The same failure as TS2339 — a property that isn't on the type — except TypeScript's checker found another real member of the same type whose name is textually close enough to guess it's what you meant.

Why this happens in documentation specifically

This is the fingerprint of a rename, not a removal: the old name is gone, a new name exists, and they're similar enough for `tsc`'s string-similarity search to connect them. Documentation samples calling the old method name compile against nothing, silently, until checked.

A real example

ai@7.0.66
result.pipeDataStreamToResponse(res);
Property 'pipeDataStreamToResponse' does not exist on type 'StreamTextResult<ToolSet, Context, Output<string, string, never>>'. Did you mean 'pipeTextStreamToResponse'?

How to fix it

TypeScript's suggestion is a string-similarity guess over the type's real member names — not a verified answer, and not aware of what the method actually does differently now. It is frequently right for a straight rename and just as capable of being wrong when the real replacement isn't the closest-spelled name.

The real example below, `pipeDataStreamToResponse` → `pipeTextStreamToResponse`, happens to be a case where the guess is correct — a straightforward vocabulary rename (data → text stream) with no behavior change. Confirm that's true for your case before trusting it; see TS2724 for a documented case, from the same package, where the equivalent guess is wrong.

Related codes

snippetcheck finds diagnostics like this one across a whole documentation site, not just a single sample — see how it works.