The first step is in realizing that all of these features you list aren’t needed for a functioning eye, and there are species with eyes that lack many of these features. A great example are the Planarians, a group of flatworms:
All they have is an eye cup. It is a pit with light sensitive cells at the bottom. The indentation allows for very crude directionality, but it doesn’t form a focused image and it certainly doesn’t have bones, ducts, and the other stuff you are talking about.