serverless-runtime-babel icon indicating copy to clipboard operation
serverless-runtime-babel copied to clipboard

Error after deployment with babel-runtime

Open casabian opened this issue 9 years ago • 0 comments

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?

casabian avatar Jun 03 '16 13:06 casabian