Runtime.ImportModuleError:错误:找不到模块'@aws/dynamodb-data-mapper

问题描述 投票:0回答:1

2024-07-01T17:48:02.915Z 未定义错误未捕获的异常
{ "errorType": "运行时.ImportModuleError", "errorMessage": "错误:找不到模块 '@aws/dynamodb-data-mapper' 需要堆栈: - /var/task/index.js - /var/runtime/index.mjs", “堆”: [ “Runtime.ImportModuleError:错误:找不到模块'@aws/dynamodb-data-mapper'”, “需要堆栈:”, “-/var/task/index.js”, “-/var/runtime/index.mjs”, “在_loadUserApp(文件:///var/runtime/index.mjs:1087:17)”, “在异步 Object.UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1119:21)”, “在异步启动时(file:///var/runtime/index.mjs:1282:23)”, “在异步文件:///var/runtime/index.mjs:1288:1” ] }

node.js amazon-web-services aws-lambda amazon-dynamodb aws-cdk
1个回答
0
投票

您似乎在 Lambda 中运行它,它使用使用 JavaScript SDK V3 的 Node 运行时。

您引用的包是 JavaScript V2 的存档包,不太可能与 V3 一起使用。

© www.soinside.com 2019 - 2024. All rights reserved.