Skip to content

Possibly wrong handler signature (TypeError: boolean / handler is not a function) #6

@dmytro-y-dev

Description

@dmytro-y-dev

If you receive TypeError: boolean is not a function or TypeError: handler is not a function after deploying to Amazon Lambda, try changing

module.exports.optimizer = processNext();

to

module.exports.optimizer = function (event, context) {
    processNext();
};

I hope this will save somebody's day.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions