Cannot read properties of undefined (reading 'getDateToBlock')

I just started getting this error:
Cannot read properties of undefined (reading 'getDateToBlock')

in the cloud function where I am using that function.

I didn’t change anything there and it was wrorking before?

I don’t know of any change, what is the context/code where that error is generated?

Ok, it started working again. But it was very weird for 5 minutes it happened. Using this code to get the the block number from a date.