Let $i: D\hookrightarrow X$ be a closed subscheme which we can think of as an effective Cartier divisor. Then Hartshorne 6.18 claims that $\mathscr{J}_D\cong \mathscr{O}(-D)$, where the LHS is the ideal sheaf of the closed embedding $D\hookrightarrow X$, and the RHS is the invertible sheaf associated to the divisor $-D$. But Vakil 21.2.H claims that in fact $\mathscr{N}^\vee_{D/X}\cong \mathscr{O}(-D)|_D$, where the LHS is the conormal sheaf, namely $i^*(\mathscr{J}_D/\mathscr{J}_D^2)$.
Doesn't this imply that $i^*(\mathscr{J}_D) \cong i^*(\mathscr{J}_D/\mathscr{J}_D^2)$? (Which doesn't make sense because it would imply $i^*(\mathscr{J}_D^2)=0$).