<@U02Q7J6A17S> this incidentally fixes that absolu...
# general
t
@Mischa Spiegelmock this incidentally fixes that absolute path problem
lmk if it's better for you
m
oh! excellent. will try to make time this week to try it
thank you 🙏
which fix was it?
t
think you were experiencing some weirdest with the long path when bundled?
I ran into something similar with the migrator so was able to fix it
m
ok i just did a build.. the folders only have package.json
t
hm what's the srcPath and handler path again?
for an example one
m
Copy code
function configureLambdaDefaults(app: App) {
  const srcPath = "../../"

  // default function properties

  // merge default externalModules
  const externalModules = [
    "aws-sdk",
    "encoding",
    "@prisma/client/runtime",
    ...LAYER_MODULES,
    // TODO: from prisma layer
  ]

  app.setDefaultFunctionProps({
    srcPath,
    runtime: DEFAULT_RUNTIME_NAME,
    memorySize: 1024,
    timeout: "10 seconds",
    bundle: {
      minify: true,
      externalModules,
    },
Copy code
appSync.createLambdaResolver({
      scope: this,
      handler: "packages/service/src/ats/api/graphql/interviewFormTemplate/addFormTemplate.addFormTemplate",
      typeName: "Mutation",
      fieldName: "addFormTemplate",
      functionOptions,
    })
sst is inside
packages/infra
t
the srcPath needs to be relative from where
sst.json
is
is that correct?
m
yea
t
ok let me dig into this
m
i can try moving SST up to the top level, i know that's how it's supposed to be, i had different problems before when i tried that but maybe it works now?
but it seems pretty chill to have your CDK stuff all in one independent package
t
yeah the issue is SST also includes build tool type functionality and operates across your whole mono-repo so it's tough for us to support it isolated to a single package
kinda like how turborepo is installed at the root
m
ok, looks more promising
do you have any idea where my schema.prisma file should be copied to by chance?
in another project I had to put it in
src/schema.prisma
but i suspect that might not work here.. testing..
t
@thdxr Just got this error when running
npx sst update 1.2.16
from
1.1.x
Copy code
Updating @serverless-stack/cli to 1.2.16
Updating @serverless-stack/resources to 1.2.16
/Users/xxxx/xxxxx/xxxxx/xxxxx/node_modules/@serverless-stack/cli/node_modules/@serverless-stack/core/package.json: ENOENT: no such file or directory, open '/Users/xxxxx/xxxxx/xxxxx/xxxxx/node_modules/@serverless-stack/cli/node_modules/@serverless-stack/core/package.json'
Running the command again works fine.