rocket-connect / for-emit-of

Turn Node.js Events into Async Iterables.
https://www.npmjs.com/package/for-emit-of
MIT License
9 stars 2 forks source link

Uncaught (in promise) TypeError: process.hrtime is not a function #16

Closed abhishiv closed 2 years ago

abhishiv commented 3 years ago

using latest from npm as of now

Uncaught (in promise) TypeError: process.hrtime is not a function
    at generator (index.js:111)
    at Function.forEmitOf2 [as default] (index.js:176)
    at fromEventEmitter (emitter.tsx:29)
    at processIncomingMessages (bus.tsx:81)
    at index.tsx:86
    at Generator.next (<anonymous>)
    at Async-from-Sync Iterator.next (<anonymous>)
    at bootShell (index.tsx:122)
danstarns commented 3 years ago

@abhishiv Hi! Thanks for your issue. What node version are you using? I also see, from the stack trace, your using typescript what is your compilation target?