Module not found when deploying Remix app to CloudFormtation with arc

0

Hi there, I have a React app built with Remix and deployed to AWS CloudFormation with arc. Everything worked great until I tried adding the following dependency: @wowzamediasystems/sdk-rts. I'm getting the error in the image. Everything works locally, the library is included in my package.json and in the node_modules. I've downloaded the lambda .zip folder and the library is not included in the package.json or is it in the node_modules there. I've tried manually installing it with "npm i" inside that directory then compressing then uploading to AWS I then get the following error(not image):

2023-03-15T12:52:34.860Z	undefined	ERROR	Uncaught Exception 	{
    "errorType": "Runtime.ImportModuleError",
    "errorMessage": "Error: Cannot find module 'index'\nRequire stack:\n- /var/runtime/index.mjs",
    "stack": [
        "Runtime.ImportModuleError: Error: Cannot find module 'index'",
        "Require stack:",
        "- /var/runtime/index.mjs",
        "    at _loadUserApp (file:///var/runtime/index.mjs:996:17)",
        "    at async Object.UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1031:21)",
        "    at async start (file:///var/runtime/index.mjs:1194:23)",
        "    at async file:///var/runtime/index.mjs:1200:1"
    ]
}

I've had no luck finding any info about this, any help greatly appreciated!

Enter image description here

gefragt vor einem Jahr56 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen