Skip to content

lambda-local, when run with --wait-empty-event-loop, throws "No such module: timer_wrap" #217

Closed
@lilsweetcaligula

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.

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions