Genesis chapter 1 is full of scientific errors and its interesting to see how apologists deal with them.
Argument:God created vegetation before the Sun, so how did the plants survive for eons?
Apologists: God had already created light on day 1 and thats how.
Argument: We only have light becuse of the Sun- it gets pretty dark at night- light from the Sun isnt pervasive at night. The Sun wasnt created until after the vegetation.
Apologists: But it says God created the heavens on day 1.
Argument: The hebrew word for sky, 'hassamayim' also means 'air', the place where birds fly, it doesnt mean the place where the sun, moon and stars exist.
Gen 1:1 could be translated , 'in the beginning God created the sky and the earth', which gives a completely different connotation to the modern reader. From the point of view of the ancient hebrew audience, the place where the stars, moon and sun exist is the 'firmament' (raqia), which translates to something like a flat,beaten sheet of metal.
And we havent even got to the flood story yet.