Patrick Young
10/18/2021, 2:49 AM2021-10-18T02:43:56.445Z undefined INFO Executing '.build/src/apolloServer/lambda.handler' in function directory '/Users/myusername/dev/chimera/apps/iridium-backend'
internal/modules/cjs/loader.js:892
throw err;
^
Error: Cannot find module '../../build/Release/runtime-client.node'
Require stack:
- /Users/myusername/.npm/_npx/f6819ddcf7347684/node_modules/aws-lambda-ric/lib/RuntimeClient/RuntimeClient.js
- /Users/myusername/.npm/_npx/f6819ddcf7347684/node_modules/aws-lambda-ric/lib/RuntimeClient/index.js
- /Users/myusername/.npm/_npx/f6819ddcf7347684/node_modules/aws-lambda-ric/lib/index.js
- /Users/myusername/.npm/_npx/f6819ddcf7347684/node_modules/aws-lambda-ric/bin/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
at Function.Module._load (internal/modules/cjs/loader.js:745:27)
at Module.require (internal/modules/cjs/loader.js:961:19)
at require (internal/modules/cjs/helpers.js:92:18)
at new RuntimeClient (/Users/myusername/.npm/_npx/f6819ddcf7347684/node_modules/aws-lambda-ric/lib/RuntimeClient/RuntimeClient.js:44:29)
at Object.run (/Users/myusername/.npm/_npx/f6819ddcf7347684/node_modules/aws-lambda-ric/lib/index.js:44:20)
at Object.<anonymous> (/Users/myusername/.npm/_npx/f6819ddcf7347684/node_modules/aws-lambda-ric/bin/index.js:14:8)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/myusername/.npm/_npx/f6819ddcf7347684/node_modules/aws-lambda-ric/lib/RuntimeClient/RuntimeClient.js',
'/Users/myusername/.npm/_npx/f6819ddcf7347684/node_modules/aws-lambda-ric/lib/RuntimeClient/index.js',
'/Users/myusername/.npm/_npx/f6819ddcf7347684/node_modules/aws-lambda-ric/lib/index.js',
'/Users/myusername/.npm/_npx/f6819ddcf7347684/node_modules/aws-lambda-ric/bin/index.js'
]
}
Looked in npx folder and
'../../build/Release/runtime-client.node'
is not there... well the whole "build" folder is not there. Searched this slack channel and aws-lambda-ric seems like a pile 🙂. I've tried destroying the stacks and bringing them back up. Clearing caches etc. git clean -fxd
it all! BURN ALL THE CACHING WHAHAHA but still same error 😕. Did I miss something on the upgrade or I'm not 100% sure what to even try or how to debug this...thdxr
10/18/2021, 2:50 AMPatrick Young
10/18/2021, 2:50 AMthdxr
10/18/2021, 2:51 AMPatrick Young
10/18/2021, 2:51 AM"sst:start": "sst start --stage $(aws iam get-user --query 'User.UserName' --output text)",
thdxr
10/18/2021, 2:52 AM.npm/_npx
Patrick Young
10/18/2021, 2:52 AMthdxr
10/18/2021, 2:53 AMaws-lambda-ric
which we don't depend on, we use our own forked version @serverelsss-stack/aws-lambda-ric
Patrick Young
10/18/2021, 2:53 AMthdxr
10/18/2021, 2:53 AMthdxr
10/18/2021, 2:53 AMPatrick Young
10/18/2021, 2:54 AMPatrick Young
10/18/2021, 2:54 AMPatrick Young
10/18/2021, 2:54 AMPatrick Young
10/18/2021, 2:55 AMPatrick Young
10/18/2021, 2:59 AM/@serverless-stack/aws-lambda-ric/2.0.4:
resolution: {integrity: sha512-jBeyY/CSUx0FzREzud136GcLDlrgeCbaw3hmGfnN7kVw6+IZ+Fwtt6Ieib2cyPUgSfpZ5ayi3lAVIvD8QtxIpQ==}
hasBin: true
dependencies:
node-addon-api: 3.2.1
node-gyp: 8.1.0
transitivePeerDependencies:
- supports-color
Patrick Young
10/18/2021, 3:00 AMPatrick Young
10/18/2021, 3:10 AMthdxr
10/18/2021, 3:10 AMPatrick Young
10/18/2021, 3:10 AMPatrick Young
10/18/2021, 3:11 AM"@serverless-stack/aws-lambda-ric": "~2.0.4"
it it worked 🤷thdxr
10/18/2021, 3:11 AMthdxr
10/18/2021, 3:12 AMPatrick Young
10/18/2021, 3:12 AMPatrick Young
10/18/2021, 3:13 AM