I think I am doing something wrong or misreading t...
# help
m
I think I am doing something wrong or misreading the docs for upgrading: I am getting
Error: Cannot set the "srcPath" to the project root for the "Lambda_POST_/login_check" function.
Should the Default settings for the api be default or defaultFunctionProps, or something else, I tried both and seem to still be having the issue. My Lambda functions are Python so srcPath is required for requirements.txt Full Traceback:
Copy code
Error: Cannot set the "srcPath" to the project root for the "Lambda_POST_/login_check" function.
  at new Function (file:///Users/dramus/chartflow/node_modules/@serverless-stack/resources/dist/Function.js:108:23)
  at Function.fromDefinition (file:///Users/dramus/chartflow/node_modules/@serverless-stack/resources/dist/Function.js:389:20)
  at Api.createFunctionIntegration (file:///Users/dramus/chartflow/node_modules/@serverless-stack/resources/dist/Api.js:491:27)
  at file:///Users/dramus/chartflow/node_modules/@serverless-stack/resources/dist/Api.js:378:26
  at Api.addRoute (file:///Users/dramus/chartflow/node_modules/@serverless-stack/resources/dist/Api.js:408:11)
  at file:///Users/dramus/chartflow/node_modules/@serverless-stack/resources/dist/Api.js:101:18
  at Array.forEach (<anonymous>)
  at Api.addRoutes (file:///Users/dramus/chartflow/node_modules/@serverless-stack/resources/dist/Api.js:100:29)
  at new Api (file:///Users/dramus/chartflow/node_modules/@serverless-stack/resources/dist/Api.js:50:14)
  at new ApiStack (file:///Users/dramus/chartflow/.build/lib/index.js:183:16)
t
can I see your stacks code?
you need to set srcPath to a sub directory