Hun leste i en bok hele kvelden.

English Translation

She read the book all night.

is the “i” necessary here?

No, there should be no “i” in that sentence.