Adam Fanello
01/29/2022, 12:27 AMemitDecoratorMetadata
here in slack and means of providing entire custom esbuild configurations. What is the easiest way to just get this metadata emitted under SST?Adam Fanello
01/29/2022, 1:22 AMBuilding function src/stacks/cognito/pre-signup-lambda.handler
Error: There was a problem transpiling the Lambda handler:
at Object.bundle (/Users/adam/dev/casa/node_modules/@serverless-stack/core/dist/runtime/handler/node.js:211:23)
at Object.bundle (/Users/adam/dev/casa/node_modules/@serverless-stack/core/dist/runtime/handler/handler.js:19:16)
at new Function (/Users/adam/dev/casa/node_modules/@serverless-stack/resources/src/Function.ts:361:39)
at new CognitoStack (/Users/adam/dev/casa/cloud/src/stacks/cognito/cognito.stack.ts:40:23)
at Object.main (/Users/adam/dev/casa/cloud/src/stacks/index.ts:51:24)
at Object.<anonymous> (/Users/adam/dev/casa/cloud/.build/run.js:94:16)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
Adam Fanello
01/29/2022, 1:30 AMKujtim Hoxha
01/29/2022, 7:23 AMKujtim Hoxha
01/29/2022, 7:23 AMKujtim Hoxha
01/29/2022, 7:23 AMKujtim Hoxha
01/29/2022, 7:24 AMKujtim Hoxha
01/29/2022, 7:24 AMKujtim Hoxha
01/29/2022, 7:28 AMAdrián Mouly
01/29/2022, 5:33 PMAdrián Mouly
01/29/2022, 5:34 PMAdam Fanello
01/29/2022, 6:15 PMKujtim Hoxha
01/29/2022, 6:35 PMAdam Fanello
01/29/2022, 6:36 PMAdam Fanello
01/29/2022, 6:36 PMKujtim Hoxha
01/29/2022, 6:38 PMAdam Fanello
01/29/2022, 6:39 PMKujtim Hoxha
01/29/2022, 6:40 PMAdam Fanello
01/31/2022, 5:47 PMexport default function main(app: <http://sst.App|sst.App>): void {
/*
* App-level configuration
*/
app.setDefaultFunctionProps({
runtime: "nodejs14.x",
architecture: Architecture.ARM_64,
logRetention: RetentionDays.ONE_MONTH,
memorySize: 256,
tracing: Tracing.DISABLED, // x-ray
bundle: {
esbuildConfig: {
keepNames: true, // preserve for @sailplane/injector
plugins: "./esbuild-plugins.js",
},
},
});
esbuild-plugins.js:
const { esbuildDecorators } = require("@anatine/esbuild-decorators");
module.exports = [esbuildDecorators()];
Still same failure as start of thread. @Frank @thdxr? Guidance appreciated.Adam Fanello
01/31/2022, 7:30 PMplugins: "./src/stacks/esbuild-plugins.js",
The thrown error when the build spawn fails tries to output stderr and stdout, but they are showing up as empty. The lack of a clue to the problem was the challenge here.thdxr
01/31/2022, 7:52 PMAdam Fanello
01/31/2022, 7:54 PMAdam Fanello
01/31/2022, 11:44 PMAdam Fanello
01/31/2022, 11:57 PMFrank
Adam Fanello
02/02/2022, 4:53 PMAdam Fanello
02/02/2022, 4:54 PMFrank
Adam Fanello
02/02/2022, 5:11 PMFrank