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

질문됨 일 년 전56회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠