{"type":"rich","provider_name":"Hatena Blog","categories":[],"height":"190","provider_url":"https://hatena.blog","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/155844699/1589415473304665","url":"https://blog.serverworks.co.jp/lambda-node-module-error","description":"\u3053\u3093\u3070\u3093\u306f\u3001SWX3\u4eba\u76ee\u306e\u718a\u8c37\uff08\u60a0\uff09\u3067\u3059\u3002 Node.js Lambda\u3067\u958b\u767a\u6642\u3001\u63b2\u984c\u306e\u30a8\u30e9\u30fc\u306b\u906d\u9047\u3057\u305f\u306e\u3067\u89e3\u6c7a\u7b56\u3092\u5099\u5fd8\u9332\u3068\u3057\u3066\u6b8b\u3057\u307e\u3059 \u7d50\u8ad6 Lambda \u4f5c\u6210\u6642\u306b\u81ea\u52d5\u4f5c\u6210\u3055\u308c\u3066\u3044\u305findex.mjs\u30d5\u30a1\u30a4\u30eb\u306e\u62e1\u5f35\u5b50\u3092\u300cindex.js\u300d\u3078\u5909\u66f4\u3059\u308b \u539f\u56e0 CommonJS \u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u306e\u307f\u52d5\u4f5c\u3059\u308b\u30b3\u30fc\u30c9\u3060\u3063\u305f\u305f\u3081\u3001\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3044\u305f \u53c2\u8003\uff1aES \u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u3057\u3066\u306e\u95a2\u6570\u30cf\u30f3\u30c9\u30e9\u30fc\u306e\u6307\u5b9a\uff1ahttps://docs.aws.amazon.com/ja_jp/lambda/latest/dg/lambda-nodejs.html#designate-es-module \u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u3001Lamb\u2026","blog_title":"\u30b5\u30fc\u30d0\u30fc\u30ef\u30fc\u30af\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","blog_url":"https://blog.serverworks.co.jp/","author_url":"https://blog.hatena.ne.jp/swx-yuji-kumagai/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.serverworks.co.jp%2Flambda-node-module-error\" title=\"exports is not defined in ES module scope\u30a8\u30e9\u30fc\u306e\u89e3\u6c7a\u65b9\u6cd5 - \u30b5\u30fc\u30d0\u30fc\u30ef\u30fc\u30af\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2025-02-28 22:00:35","title":"exports is not defined in ES module scope\u30a8\u30e9\u30fc\u306e\u89e3\u6c7a\u65b9\u6cd5","width":"100%","author_name":"swx-yuji-kumagai","version":"1.0"}