Closed Alex-Mann closed 7 years ago
your lambda function is trying to include a dev dependency for some reason, and the error message is saying that it cannot load it (which is correct, because the package is validated after creating a clean production install). you shouldn't need to have babel dependencies loaded from within the lambda function. alternatively, if you really want to do that for some strange reason, you'll need to include babel-runtime/regenerator as a production dependency.
I am trying to run an express app by following the tutorial outlined here. I am also trying to use async await syntax by transpiling with babel. I have created a
bin
folder that I transpile a basic express app to. For some reason when I call:claudia create --handler lambda.handler --deploy-proxy-api --region us-east-1
I get the error:I have tried various setups but am still having no luck. This is what my package.json looks like: