Hi!
today’s version update (2.35.0 → 2.36.0) of serverless framework breaks deploy at step aws:common:cleanupTempDir
when ‘org’ parameter is set. Getting this error:
Serverless: Using provider credentials, configured via dashboard: https://app.serverless.com/.....
Serverless: Skipping variables resolution with old resolver (new resolver reported no more variables to resolve)
Serverless: Invoke deploy
Serverless: Invoke package
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:common:cleanupTempDir
Type Error [ E R R_ I N V A L I D_ A R G_ T Y P E] ------
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
at validateString (internal/validators.js:125:11)
at Object.join (path.js:1147:7)
at wrap (/usr/local/lib/node_modules/serverless/node_modules/@serverless/enterprise-plugin/lib/wrap.js:344:31)
at ServerlessEnterprisePlugin.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/@serverless/enterprise-plugin/lib/plugin.js:444:17)
at process._tickCallback (internal/process/next_tick.js:68:7)
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: darwin
Node Version: 10.19.0
Framework Version: 2.36.0
Plugin Version: 4.5.3
SDK Version: 4.2.2
Components Version: 3.8.3
It breaks even on new services created from template, tested with this one:
sls create --template aws-nodejs --path ...
The interesting thing is that it only breaks when serverless.yml contains org parameter (or if it’s provided in cli), otherwise it deploys. so I’m not sure is that a bug in serverless repo or it is related to the serverless platform?
template:
service: test
frameworkVersion: '2'
app: myapp
org: myorg
provider:
name: aws
runtime: nodejs12.x
lambdaHashingVersion: 20201221
functions:
hello:
handler: handler.hello