serverless-plugin-include-dependencies icon indicating copy to clipboard operation
serverless-plugin-include-dependencies copied to clipboard

Issue including dependencies

Open AlexinGtz opened this issue 1 year ago • 3 comments

I'm using version ^5.1.0 and each time I package the lambdas it doesn't include any dependency. image

I have installed the plugin and set the package like the documentation says

image The lambda is declared this way

image But when packagin, the node modules doesn't show in the folder. and I cant find anything related to this issue

AlexinGtz avatar Nov 07 '23 16:11 AlexinGtz

Seems that installing the plugin serverless-plugin-common-excludes made some of the lambdas to have node_modules, but not all. /And i've defined all lambdas the same image This lambda does have node_modules

image This lambda doesn't

AlexinGtz avatar Nov 07 '23 18:11 AlexinGtz

Another thing I noticed. If I deploy each function directly it deploys it with the node modules using the serverless deploy function -f {fnName} -u

AlexinGtz avatar Nov 07 '23 18:11 AlexinGtz

Same issue here, using :

  • node v16.14.2,
  • windows
  • "serverless-plugin-common-excludes": "^4.0.0",
  • "serverless-plugin-include-dependencies": "^5.1.0"

Can deploy only with : serverless deploy function -f {fnName} (no update)

Keirodev avatar Nov 10 '23 00:11 Keirodev