Creation HymnThen was not non-existent nor existent: there was no realm of air, no sky beyond it.
What covered in, and where? and what gave shelter? Was water there, unfathomed depth of water?
Death was not then, nor was there aught immortal: no sign was there, the day's and night's divider.
That One Thing, breathless, breathed by its own nature: apart from it was nothing whatsoever.
Darkness there was: at first concealed in darkness this All was indiscriminated chaos.
All that existed then was void and form less: by the great power of Warmth was born that Unit.
Thereafter rose Desire in the beginning, Desire, the primal seed and germ of Spirit.
Sages who searched with their heart's thought discovered the existent's kinship in the non-existent.
Transversely was their severing line extended: what was above it then, and what below it?
There were begetters, there were mighty forces, free action here and energy up yonder
Who verily knows and who can here declare it, whence it was born and whence comes this creation?
The Gods are later than this world's production. Who knows then whence it first came into being?
He, the first origin of this creation, whether he formed it all or did not form it,
Whose eye controls this world in highest heaven, he verily knows it, or perhaps he knows not.
-copied from here.
Rig Veda echoes Genesis.
I asked whether void or chaos preceded cosmos but maybe both did? See here: virtual particles constantly beginning and mutually annihilating (chaos) in vacuum (void).
A single creator before the creation would be a self without other which is like a square without sides. Thus, I would rewrite Genesis, deleting the words in brackets:
"In the beginning (God created the heaven and the earth and) the earth was without form..."
I suggest that the bracketed words be understood as a myth, like the gods emerging in the Ginnungagap.