Open jefbarn opened 1 week ago
Hi @bartlomieju @littledivy, this is my first time contributing to Deno. I’ve successfully built the project, And I’m encountering the same error when trying to run the above code with the new build. Could someone point me in the right direction to resolve this issue? I’d really appreciate the help! Thanks in advance!
@cu8code I think deno node compatibility layer might be incorrectly resolving the node:times/promises to the traditional timers module since: Traditional: setInterval(callback, delay, ...args) Promises: setInterval([delay[, value[, options]]])
@bartlomieju @littledivy I would also like to look at the issue further and work on a fix if you could assign it to me.
For folks wanting to tackle this: The issue is here where we're trying to promisify the existing setInterval
implementation, whereas in node the promisified variant is a completely different implementation with different arguments, etc.
@marvinhagemeister thanks will look into it
Version: Deno 2.0.2
Example straight from the docs (https://docs.deno.com/api/node/timers/promises/~/setInterval)