This repository was archived by the owner on Jun 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
node_modules not included in layersΒ #163
Copy link
Copy link
Open
Description
Issue Description:
After upgrading to version v2.8.5 of serverless-layers, the plugin fails to include the node_modules directory in its generated layers.
Steps to Reproduce:
- Upgrade
serverless-layerstov2.8.5. - Deploy a serverless application that utilizes layers.
- Verify the contents of the deployed layers.
Expected Behavior:
The layers should contain the node_modules directory, including all dependencies required by the specified packages.
Actual Behavior:
Upon inspection of the deployed layers, we can see that the node_modules directory is missing.
Workaround:
Reverting to version v2.7.0 of serverless-layers resolves the issue, as the node_modules directory is correctly included in the generated layers.
Environment:
- Serverless Framework version:
3.38.0 - Node.js version:
18.17.1 - NPM Version:
9.6.7
Screenshot:

Here you can observe that the total layer size is much less than it should be.
rajeevbbqq, symfoware, sabotageivet123, JoseFortunato, HumbleBeck and 5 more
Metadata
Metadata
Assignees
Labels
No labels