Closed xeroxstar closed 3 years ago
What environment are you running this in?
Same issue with NodeJS v12.3.1, Yarn 1.22.5 and Ubuntu 16.04.7.
What environment are you running this in?
node v12.13.0 npm v6.12 windows 10
I was able to fix the the module by replacing the line this.fireImmediately = fireImmediately ?? false;
to this.fireImmediately = fireImmediately || false;
in ratelimiter.js
. But as I understand the module need to be compiled with "babel-plugin-proposal-nullish-coalescing-operator" to make it work without any changes to the files.
Thanks. I think the issue is targeting ESNext
with the TypeScript -> JS compilation, which breaks support for node v12. I'll change the compilation target to ES2019
.
I am running this example:
and i am getting this error: