Skip to content

Cannot read property 'config' of undefined #37

@clocked0ne

Description

@clocked0ne

During deployment in Circle CI after updating to 4.2.0 I'm seeing the folowing error:

TypeError: Cannot read property 'config' of undefined
      at Object.addApiKey (/home/circleci/project/node_modules/serverless-add-api-key/src/helper.js:286:31)

It looks like if for whatever reason provider.sdk isn't populated then creating this new property for httpOptions throws the error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions