If $f:X\rightarrow Y$ is a morphism of algebraic schemes with reduced and projective source $X$ and nonsingular target $Y$, then first order deformations of the map $f$ with both source and target fixed is in bijection with $H^{0}(X,f^{*}T_Y)$.
How do I understand the condition that $Y$ is nonsingular? Is there a good example to keep in mind where $Y$ is singular and we no longer have the bijection above?
(References: Proposition 3.4.2 in Sernesi's deformation theory book, Reference Request: Deformations of a map bijective to global sections of the pullback of the tangent sheaf)