Hi All :slightly_smiling_face: Do you know what w...
# general
Hi All 🙂 Do you know what would be the reason that I’m getting following error when I hit the endpoint of
Copy code
  "errorType": "Error",
  "errorMessage": "Cannot find module 'tslib'\nRequire stack:\n- /var/task/__index.js\n- /var/runtime/index.mjs",
  "code": "MODULE_NOT_FOUND",
  "requireStack": [
  "stack": [
    "Error: Cannot find module 'tslib'",
    "Require stack:",
    "- /var/task/__index.js",
    "- /var/runtime/index.mjs",
    "    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)",
    "    at Function.Module._load (node:internal/modules/cjs/loader:778:27)",
    "    at Module.require (node:internal/modules/cjs/loader:1005:19)",
    "    at require (node:internal/modules/cjs/helpers:102:18)",
    "    at /var/task/__index.js:5:21",
    "    at Runtime.__f0 [as handler] (/var/task/__index.js:14:6)",
    "    at Runtime.handleOnceNonStreaming (file:///var/runtime/index.mjs:1089:29)"
Looks like you're missing some dependency. Have you bundled all the required libraries into your .zip?
OK it appears, it is a problem of being in monorepo, when I move it to the standalone pulumi project things are working
I’m using new awsx.apigateway.API , inline callback , so I didnt need to bundle myself
Sorted then? Or still having issues?
Yes it is sorted :) thanks