导入模块我有一个简单exports.js文件,我已经拉链的文件夹,并把它上传到LAMBDA但运行时它给出了一个错误:无法在LAMBDA
"errorMessage": "Cannot find module 'exports'",
"errorType": "Error",
"stackTrace":
[
"Function.Module._resolveFilename (module.js:338:15)",
"Function.Module._load (module.js:280:25)",
"Module.require (module.js:364:17)",
"require (module.js:380:17)"
]
任何帮助,将不胜感激。 感谢
你可以发布你的文件夹结构,并且你可能试图“需要”“出口”模块吗? – idbehold
如果您仍然面临这个问题,也许这可能有所帮助:http://stackoverflow.com/a/43105773/4455570 干杯! –