Hello. I followed the aws impl example, but when t...
# support-questions-legacy
e
Hello. I followed the aws impl example, but when testing I am running into 500s with this log. Not sure of what I missed, I am hoping you have seen something similar before
Copy code
Endpoint response body before transformations: 
{
    "errorType": "Runtime.ImportModuleError",
    "errorMessage": "Error: Cannot find module 'index'\nRequire stack:\n- /var/runtime/index.mjs",
    "trace": [
        "Runtime.ImportModuleError: Error: Cannot find module 'index'",
        "Require stack:",
        "- /var/runtime/index.mjs",
        "    at _loadUserApp (file:///var/runtime/index.mjs:1000:17)",
        "    at async Object.UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1035:21)",
        "    at async start (file:///var/runtime/index.mjs:1200:23)",
        "    at async file:///var/runtime/index.mjs:1206:1"
    ]
}
r
hey @EyesForDays how have you imported from the SDK?
e
using import from the example.
import supertokens from "supertokens-node";
etc.
Ah, but I used a js vs a ts file
r
right. So you should use
let supertokens = require("supertokens-node");
e
mjs
missed that hint. Thanks!
3 Views