The speed of light, about 186,000 miles per second, is constant. Therefore light emitted from the surface of our sun takes about 8 minutes to reach earth. Over that interval, the light is "in transit."
Bottom line, no one has an answer that seems solid when studied, no matter how loud the YEC and OEC shout. Job 38 provides that real answer.
Let's read Scripture:
God created the LIGHT on Day one..day uno...day un....day einz...
God created the STARS on Day four...day quatro...day quatre....day veir....let's do it in "Belarusian" just for fun: day Чатыры
Day 1: Light
Day 4: Star
How is this so hard to understand?