Closed modulitos closed 8 years ago
I have same problem. The plugin is looking at function level to check for runtime but instead it should look at component level (the runtime is defined in s-component.json
).
My workaround was to utilize Function.getRuntime(): boaf/serverless-serve@9b51091a61b26f6b147e1fa3584806053c5ead81
In fact, it looks like this may become the officially-supported way of getting the runtime. See ryansb/serverless@9f1c57fd0f976cf4f3d3821d253c3615417129d0
The Function.getRuntime()
solution works for me. Thanks
There is a check in the
_registerLambdas
function where we iterate through all of the lambda functionsfun
, and then we checkif ( fun.runtime == 'nodejs' ) {
to register the lambda. For some reason,fun.runtime
is undefined, so none of our lambdas are getting registered.Perhaps this was a breaking change in a Serverless update? Or maybe we can update the documentation to describe how someone can define their lambda's
fun.runtime
field?