Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue including dependencies #94

Open
AlexinGtz opened this issue Nov 7, 2023 · 3 comments
Open

Issue including dependencies #94

AlexinGtz opened this issue Nov 7, 2023 · 3 comments

Comments

@AlexinGtz
Copy link

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
Copy link
Author

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
Copy link
Author

AlexinGtz commented Nov 7, 2023

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

@Keirodev
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants