Does the AWS Amplify push package up the entire node_modules folder?

1k Views Asked by At

When we run amplify push does amplify package up the entire node_modules folder, or is that recreated on the AWS side using package.json?

Also asked this question here:

https://github.com/aws-amplify/amplify-cli/issues/4018

1

There are 1 best solutions below

0
Ole On

Confirmed with the AWS Amplify team that it does. I made a mistake in my intall.

Instead of @fireflysemantics/stripe I installed @fireflysemantics/slice. And thus the import:

const stripeapi = require('@fireflysemantics/stripe')

Failed, causing the lambda function to fail.