Closed vedantroy closed 2 years ago
Issue is that knex
does dynamic requires, which cannot be picked normally via static analysis.
To workaround that, you need to ensure ignoreMissing: true
option for reducer, and ensure that modules which are eventually picked by dynamic resolution are taken via include
option.
I'm closing this, but do not hesitate to ask more questions if needed
Bug Report
Description
serverless package
knex
(I think).serverless.yml
file?provider: name: aws runtime: nodejs12.x
package:
Unclear if this setting does anything, since I have 1 function
individually: true exclude:
functions: app: handler: src/api.serverless events:
cors: true
cors: true
SLS_DEBUG=*
environment variable (e.g.SLS_DEBUG=* serverless deploy
)I can include it, but I don't think it would be helpful?
I am using this plugin because I have a bunch of other modules in my
package.json
that I don't want to include in the final lambda. These modules will be used bylocal.js
for various purposes.