actually light created before the stars, and while what would become the earth could rightly be said to still be "formless" is completely consistent with current cosmological theory. it's the right order.
whether or not what we call the laws of physics are universally consistent over all space and time is a different question. i got problems with Hubble. i got problems with that consistency. i kinda doubt it. some other astronomers in my generation are starting to doubt it too. whole other story though.
i'm using "photons with a mean-free-path greater than the planck length" as a definition of light. by no means does light have as it's only source , the sun, sol. or any other star. light a candle to prove that to yourself.
every big-bang type theory of the early universe - every single-point-of-origin theory - implies a very dense, hot and energetic 'soup' of energy and elementary particles (and photons) that expanded (stretched - see Job 9:8, Psalm 104:2 - that's consistent with the Word too) into the universe we see today. at first it was too dense for any photon to travel more than a planck-length before running into another particle or photon. i.e. there was no "light." then, He said "let there be light" - and there was light. the density of the universe became such that photons could travel measurable distances. modern cosmology predicts that this happened at a specific instant in time - fully consistent with the Word.
it is also implied by (most) modern theories and observation that the universe was (and is) more or less homogeneous. so that these photons bound up with everything else that would become the stars and the planets and all else that is more or less permeated all of it. so this sudden appearance of light in the universe would have been 'universal' at once - everywhere, there was light.
and as the universe cooled and expanded, the photons traveled further, and there became 'space' where there was not light. God separated the light from the darkness. albeit an enormous number of photons in the universe, a finite one. and photons appear to travel in time - they are not omnipresent. it takes a measurable amount of time to fill a room with them after you light that candle.
here's where i start to differ with 24-hr literalism. we don't need for the sun to be formed before there was light, or the earth to cast a shadow before there is something we can call not-light (or "darkness"). but to hold on to "day = 24 hour earth day" do we need them to be fully formed?
doesn't it say that the Lord called the light "day" and the dark "night" ? while the earth was "formless and void" ?
don't the prophets speak of "that day" and refer to a length of time from the tribulation right through the end of the millennium ?
anyhow, it only looks inconsistent when we insist on things like light having to originate from sol, and a 'day' being measured by the rotation of a fully formed earth relative to sol.
nevertheless, God may do with His universe as He wishes. everything we think we know about it's workings and beginnings is inferred by incomplete observation. mankind could be very, very, wrong about it. it's beyond me why the Lord would make it look 'just so' when it wasn't anything near 'so' though.