This is my JS in nodeJS :
function test(a, room, seconds) { console.log(a, room, seconds); } intervalid = setInterval(test, 1000, \'room\', 20); console
This just caught me. Exactly the same scenario, clearInterval simply wasn't working.
Looking in the console, the result of setInterval was an object, not a number. I was quite confused.
The solution was to remove this import statement, which had snuck in:
import { setInterval } from 'timers';