Open hakimio opened 5 years ago
@hakimio I am getting the same error. Did you manage to get it resolved?
This issue is pretty old, but, as far as I can remember, I just stopped using this plugin. I don't think I ever found any solution.
Just checked my git log: I just replaced this plugin with serverless-layers
.
Steps to reproduce
yarn install
yarn run test:sls
Results You Received:
sls invoke local
fails with "Cannot convert undefined or null to object" error coming from fastify.Results You Expected:
If you disable optimize plugin, the test succeeds with 200 response:
Environment Details:
Serverless: 1.51.0 serverless-plugin-optimize: 4.1.0-rc.1