3 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
You can check resolution mentioned in similar post.
https://repost.aws/knowledge-center/lambda-import-module-error-nodejs
répondu il y a un an
0
Does your Lambda code contains a node_modules with the library installed?
yes the node_modules is in the imported including the nanoid
Did it get solved? I see a another similar question.
not yet unfortunately
0
It looks like you are referencing a module 'nanoid' that is not available by default and that you have not included in your Lambda zip file. This should help you install module and include it in the zip file. https://stackoverflow.com/questions/34437900/how-to-load-npm-modules-in-aws-lambda
I have double checked my file directory and nanoid is imported
Contenus pertinents
- demandé il y a 7 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 4 mois
- AWS OFFICIELA mis à jour il y a 3 ans
So in this case, do I include the nanoid in the node_modules then deploy the zipped file ?