The original novel never claimed that sunlight killed vampires, only that it weakens their power and prevents them from shape-shifting. The trope was invented for an iconic death scene in this 1922 film.
Nosferatu