dougmoscrop / serverless-plugin-include-dependencies

MIT License
184 stars 41 forks source link

Error occurs when an `image` is used for a function rather than a `handler` #100

Open hobgoblina opened 3 months ago

hobgoblina commented 3 months ago

I'm trying to deploy multiple functions, one of which needs to be deployed with an image attribute rather than a handler filepath. I'm getting this error for that function: TypeError: Cannot read properties of undefined (reading 'lastIndexOf') which occurs in getHandlerFilename

Not sure if there's a better way to handle this via the serverless config, but here's a PR that should fix it: https://github.com/dougmoscrop/serverless-plugin-include-dependencies/pull/101