Skip to content

Commit 44d858b

Browse files
author
Sergii Kovalev
committed
Fix: ServerlessError: Export 'project-name-ServerlessAliasReference' does not exist.
1 parent a023ac5 commit 44d858b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/stackInformation.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ module.exports = {
8282
.mapSeries(stack => BbPromise.join(BbPromise.resolve(stack), this.aliasStackLoadTemplate(stack)))
8383
.map(stackInfo => ({ stack: stackInfo[0], template: stackInfo[1] }))
8484
.catch(err => {
85-
if (err.statusCode === 400) {
85+
if (err.statusCode === 400
86+
|| (err.statusCode === undefined && err.providerError && err.providerError.statusCode === 400)
87+
) {
8688
// The export is not yet there. Can happen on the very first alias stack deployment.
8789
return BbPromise.resolve([]);
8890
}

0 commit comments

Comments
 (0)