3 個答案
- 最新
- 最多得票
- 最多評論
1
You can check resolution mentioned in similar post.
https://repost.aws/knowledge-center/lambda-import-module-error-nodejs
已回答 1 年前
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
相關內容
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
So in this case, do I include the nanoid in the node_modules then deploy the zipped file ?