3 Respuestas
- Más nuevo
- Más votos
- Más comentarios
1
You can check resolution mentioned in similar post.
https://repost.aws/knowledge-center/lambda-import-module-error-nodejs
respondido hace un año
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
Contenido relevante
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 8 meses
So in this case, do I include the nanoid in the node_modules then deploy the zipped file ?