Mischa Spiegelmock
12/31/2021, 9:27 AMsrcPath
? Anything I can do about this?
Error: Cannot find module 'search'
Frank
srcPath
and handler
? And also can you share a screenshot of the error?Mischa Spiegelmock
01/01/2022, 8:50 AMMischa Spiegelmock
01/01/2022, 8:50 AMMischa Spiegelmock
01/01/2022, 8:52 AMconfigureLambdaDefaults() {
const srcPath = getProjectRoot() // absolute path; it's a monorepo
// default function properties
this.setDefaultFunctionProps({
srcPath,
layers: [getSentryLayerByLang(this)],
runtime: DEFAULT_RUNTIME,
// bundle: { minify: true },
environment: {
[EnvVars.envName]: this.stage,
[EnvVars.stackName]: this.stackName,
DEBUG: "*",
NODE_ENV: "production",
},
bundle: {
externalModules: [...LAYER_MODULES, ...PRISMA_LAYER_EXTERNAL],
},
})
...
appSync.addResolvers(this, {
"Query searchVacancies2": {
handler: "packages/service/src/ats/api/graphql/vacancy/search.searchVacancies",
},
})
Mischa Spiegelmock
01/02/2022, 10:03 AMsearchVacancies
is bundled with NodejsFunction, searchVacancies2
is bundled with sst.FunctionMischa Spiegelmock
01/02/2022, 10:04 AMthdxr
01/03/2022, 12:18 AMthdxr
01/03/2022, 12:19 AMMischa Spiegelmock
01/03/2022, 11:34 AMMischa Spiegelmock
01/03/2022, 11:35 AMthdxr
01/03/2022, 1:20 PMthdxr
01/03/2022, 1:21 PMMischa Spiegelmock
01/03/2022, 1:49 PM