Hi!
I’m trying to get sharp installed and deployed in a function. It bundles correctly and runs perfectly with serverless offline
but when I run serverless deploy
, the process exits (no errors) right after webpack finishes bundling (I have a .webpack that looks correct) but it never moves onto the next step (serverless packaging).
Excerpt from end of log
SLS_DEBUG=\* serverless deploy --verbose
Serverless: Invoke webpack:package
Serverless: Fetch dependency graph from /Users/cathy/relephant/web/package.json
Serverless: Package lock found - Using locked versions
Serverless: Packing external modules: sharp@^0.25.2
Serverless: Package took [4117 ms]
// EXITS HERE - no error messages
Excerpt from serverless.yml
plugins:
- serverless-webpack
- serverless-offline
custom:
webpack:
includeModules: true
packager: 'yarn'
Additional webpack details
externals: { sharp: "commonjs sharp" },
is in the webpack config. (Using nodeExternals results in the same error)
Any leads would be very appreciated Have been stuck on this for quite a while.