serverless-client-s3 icon indicating copy to clipboard operation
serverless-client-s3 copied to clipboard

Deploying to new stage

Open randallmeeker opened this issue 9 years ago • 4 comments

Everything was working great on dev stage. Then I created and deployed my sls functions and endpoints to a new stage. When I went to deploy client, this is what I got:

➜  audible git:(master) sls client deploy
/usr/local/lib/node_modules/serverless/node_modules/bluebird/js/release/async.js:49
        fn = function () { throw arg; };
                           ^

TypeError: stages[i].getName is not a function

randallmeeker avatar Apr 19 '16 19:04 randallmeeker

Yikes...sorry about that! will look into it asap! 😊

eahefnawy avatar Apr 22 '16 12:04 eahefnawy

Did this get resolved? I have this issue as well and really need to move forwards...

TreeMan360 avatar May 12 '16 06:05 TreeMan360

....ahh I can work around it using the stage option. e.g. sls client deploy -s dev 👍

TreeMan360 avatar May 12 '16 07:05 TreeMan360

Proposed fix as a pull request

cartesive avatar Jul 22 '16 12:07 cartesive