Skip to content

Error after deployment with babel-runtime #22

@casabian

Description

@casabian

The babel transformation seems to add a require('../package.json') to the serverless deployment package which is not in the deployment zip.

errorMessage "Cannot find module '../package.json'"
errorType "Error"
stackTrace

There is no problem in the deployment as long as there are no dependencies required in the lambda function.

How do I configure the babel runtime to correctly deploy my function?

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