Morgan Freeman's sonM
Denoβ€’2y agoβ€’
1 reply
Morgan Freeman's son

timeOrigin = undefined on Deno Deploy

Hello guys
When i deploy my code on Deno Deploy, I have this error in the logs and it says "ERROR: RangeError: Invalid time value at Date.toISOString ()". It happens because of this line in my code
const start = performance.timeOrigin; //undefined

I've tried to use Date.now() instead of performance.timeOrigin, and it worked.
*Btw performance.now() working as well.

Does someone know what is the possible solution? Deno on latest version.

It deployes successfully, but on Deno logs this error.
image.png
Was this page helpful?