lambda-local, when run with --wait-empty-event-loop, throws "No such module: timer_wrap" #217
Closed
Description
Hi! Thank you for your work on the package. There seems to be an issue with the --wait-empty-event-loop
option that occurs on versions of Node.js 11 and greater. lambda-local
, when run with the --wait-empty-event-loop
option, throws an error:
Error: No such module: timer_wrap
at process.binding (node:internal/bootstrap/loaders:144:11)
at Object.waitForNodeJS ([redacted]/lambda-local/build/lib/utils.js:148:37)
My Node.js version is:
$ node -v
v16.4.2
This seems to be related to a similar issue in another package:
myndzi/wtfnode#32
Apparently timer_wrap
has been deprecated in Node.js 11, and async_hooks
must be used instead.