The problem of light created(day 1) before the light bearers(day 4) is perhaps the earliest recognized problem with Gen 1 being historical/scientific ordering.

Likewise "there was evening and morning" preceding the formation of either the earth or the sun.

it was exegetical problems such as these that leads into framework interpretation.