Dan Van Brunt
03/31/2022, 2:14 PM: Error: Cannot find module 'chrome-aws-lambda'\nRequire stack: /Users/me/Projects/idx/.sst/artifacts/klick-packages
Getting this when trying to sst start from a SST app that imports a yarn linked construct that in-turn implements a lambda that “should” be implementing a layer with ``chrome-aws-lambda` in it.
Any ideas how to fix so I can test this function?
Does sst.Function implement layers when using sst start ?Dan Van Brunt
03/31/2022, 2:16 PMsst start) and that doesn’t have the layer?Dan Van Brunt
03/31/2022, 2:25 PMsst start and lambda layers?Dan Van Brunt
03/31/2022, 2:48 PMexternalModules from the sst.Function and then added chrome-aws-lambda and puppeteer-core devDeps to my package.
Now I’m getting….
{"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Runtime.ImportModuleError: Error: Cannot find module '/Users/me/Projects/idx/.sst/artifacts/klick-packages/packages/cdk-constructs/assets/social-cards/puppeteer/lib/BrowserDan Van Brunt
03/31/2022, 2:58 PMpuppeteer-core , chrome-aws-lambda and puppeteer as devDeps…. still getting the above error. Now I’m stuck, not sure what else to try.Dan Van Brunt
03/31/2022, 3:11 PMsst start to work just deploying fully each time and debugging with CWL. 😭Dan Van Brunt
03/31/2022, 3:20 PMthdxr
03/31/2022, 5:28 PMthdxr
03/31/2022, 5:28 PMDan Van Brunt
03/31/2022, 5:28 PMthdxr
03/31/2022, 5:28 PMthdxr
03/31/2022, 5:28 PMDan Van Brunt
03/31/2022, 5:29 PMthdxr
03/31/2022, 5:30 PMDan Van Brunt
03/31/2022, 5:31 PMnohoist so they will still be in the same nm folderDan Van Brunt
03/31/2022, 5:31 PMDan Van Brunt
03/31/2022, 5:31 PMsst start ?Dan Van Brunt
03/31/2022, 5:31 PMthdxr
03/31/2022, 5:32 PMthdxr
03/31/2022, 5:32 PMthdxr
03/31/2022, 5:32 PMsrcPath isDan Van Brunt
03/31/2022, 5:33 PMDan Van Brunt
03/31/2022, 5:33 PMDan Van Brunt
03/31/2022, 5:36 PMDan Van Brunt
03/31/2022, 5:37 PMDan Van Brunt
03/31/2022, 5:38 PMDan Van Brunt
03/31/2022, 5:38 PMthdxr
03/31/2022, 5:40 PMthdxr
03/31/2022, 5:40 PMthdxr
03/31/2022, 5:40 PMDan Van Brunt
03/31/2022, 5:40 PMthdxr
03/31/2022, 5:41 PMDan Van Brunt
03/31/2022, 5:41 PMDan Van Brunt
03/31/2022, 5:41 PMDan Van Brunt
03/31/2022, 5:42 PM