This is absolutely incorrect.
First of all, why are you so certain that there is only one type of functioning eye? There are several different types of eyes present in several different kinds of creatures. Some merely inform the brain of the creature whether light is present. Some add information on direction and intensity. Still others add color information, and other still carry the kind of complex information available from the human eye. It’s all a function of the kinds of cells used, how much curvature is present on the surface where those cells reside, etc.
Second of all, if life is good at anything, it’s good at adaptation. In an environment where your food sources are likely to be coincident with light sources, the ability to detect the presence or absence of light at all is an enormous advantage. A creature with a mutation conferring such an advantage is likely to reproduce more often, opening the door for further mutations and more and more refined eyes.
Similarly, a piece of anatomy which begins as a means of temperature regulation can become a piece of anatomy which functions as a wing, as some entomologists are led to believe happened with many insect species.
Richard Dawkins covers this topic at length in his book, Climbing Mt. Improbable. The whole book is devoted to the problem you mention: getting from no eyes to fully functioning eyes in a single step. The solution is that you don’t have to do it in a single step. It’s a good read, if you’re interested. Dawkins tends not to take on the pandering tone that Stephen Jay Gould often does.