serverless-aws-alias icon indicating copy to clipboard operation
serverless-aws-alias copied to clipboard

ServerlessError: Export 'project-name-ServerlessAliasReference' does not exist.

Open sorash opened this issue 5 years ago • 19 comments

I am seeing the following error message when using [email protected]. This issue does not happen with prior versions.

Serverless: [AWS cloudformation 400 0.279s 0 retries] listImports({ ExportName: 'project-name-ServerlessAliasReference' })

Serverless Error ---------------------------------------

ServerlessError: Export 'project-name-ServerlessAliasReference' does not exist.
    at promise.catch.err (C:\Users\user\AppData\Roaming\npm\node_modules\serverless\lib\plugins\aws\provider\awsProvider.js:329:27)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Environment:

Your Environment Information ---------------------------
     Operating System:          win32
     Node Version:              10.16.0
     Framework Version:         1.61.3
     Plugin Version:            3.2.7
     SDK Version:               2.3.0
     Components Core Version:   1.1.2
     Components CLI Version:    1.4.0

Looking into the changelog for 1.61.3, this commit seems to try and improve error handling, which could be causing this message to come up.

Temporary fix to this problem for anyone else running into it, is to install version 1.61.2 as a project dev dependency and use node ./node_modules/serverless/bin/serverless deploy instead.

Please let me know if any more information can help.

sorash avatar Jan 22 '20 19:01 sorash

I am seeing this issue with version 1.62 as well. Downgrading to serverless version 1.61.2 solves the problem . But it would be good to have this fixed in the latest version so we don't have to keep pinning on version 1.61.2.

shintasmith avatar Jan 31 '20 18:01 shintasmith

Hi guys, any update on this? I'm getting the same message with serverless 1.66.0.

raymercb avatar Mar 10 '20 21:03 raymercb

Hello folks, the problem seems to be happening with 1.67.0 as well

Framework Core: 1.67.0 Plugin: 3.5.0 SDK: 2.3.0 Components: 2.22.3

Any updates?

victoraldir avatar Mar 22 '20 00:03 victoraldir

fix is coming https://github.com/serverless-heaven/serverless-aws-alias/pull/186

Enase avatar Mar 25 '20 20:03 Enase

Meanwhile, to avoid this error, we can downgrade the serverless version. This one works well on my side: 1.61.2

raymercb avatar Apr 27 '20 17:04 raymercb

Same problem with 1.78.1. Has the problem been fixed?

siovaneDAZN avatar Aug 13 '20 07:08 siovaneDAZN

Still experiencing the same issue. Is there any plan on fixing this? Thanks!

brotodex avatar Aug 20 '20 10:08 brotodex

Experiencing this problem with 1.80.0. Any updates on this being fixed?

PaulKleinschmidt avatar Aug 27 '20 23:08 PaulKleinschmidt

Still persists on 2.3.0

dobeerman7 avatar Oct 13 '20 14:10 dobeerman7

User with version 2.9.0 here. This issue is still there. As this is so far beyond version 1.61.2, I kinda don't want to downgrade as suggested above. Would be great if this issue is fixed soon. Thank you.

tanmay-kulkarni avatar Nov 02 '20 09:11 tanmay-kulkarni

Any updates on this being fixed? I really needs this and I can't find an alternative or workaround.

eliyasmeth avatar Nov 12 '20 15:11 eliyasmeth

fix is coming #186

I can confirm this is working, one more review is pending on the PR. Using serverless 2.11.1

eliyasmeth avatar Nov 19 '20 07:11 eliyasmeth

Is the fix released? Here is what I'm on:

serverless v2.15.0 serverless-aws-alias v1.8.0

StealthyDev avatar Dec 30 '20 20:12 StealthyDev

Same issue with the following:

Serverless: 2.18.0 serverless-aws-alias: 1.8.0

thomasfaller avatar Jan 07 '21 17:01 thomasfaller

Quick fix can be found here

Enase avatar Jan 09 '21 11:01 Enase

Same issue with

Serverless: 2.29 serverless-aws-alias: 1.8.0

Same issue with the serverless-aws-alias-fixed package

danieljosephbrennan avatar Mar 12 '21 01:03 danieljosephbrennan

The only way i got this to work is to use this "serverless": "1.61.2", "serverless-aws-alias": "^1.8.0", "serverless-aws-alias-alb-patch": "^1.1.0",

or you can use the following without serverless-aws-alias "serverless": "2.11.1", "serverless-aws-alias-fixed": "^2.0.1",

kennrll18 avatar Jun 07 '21 20:06 kennrll18

It worked for me when i used following changes:

file : package.json

"devDependencies": { "serverless-aws-alias-fixed": "^2.0.1" }

#############################

On file : serverless.yaml

................... plugins:

  • serverless-aws-alias-fixed

ABRAJ11 avatar May 25 '22 05:05 ABRAJ11

"serverless": "^2.60.0",
"serverless-aws-alias-fixed": "^2.0.1",

fails.

...
Serverless: Deprecation warnings:
Detected unrecognized CLI options: "--alias", "--retain".
Starting with the next major, Serverless Framework will report them with a thrown error
...
Serverless Error ----------------------------------------
 
  ServerlessError: Export 're-dev-ServerlessAliasReference' does not exist.
      at /builds/zhor-tech/products/cloud/digital/cloud/rengines/node_modules/serverless/lib/aws/request.js:225:11
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async persistentRequest (/builds/zhor-tech/products/cloud/digital/cloud/rengines/node_modules/serverless/lib/aws/request.js:149:14)
...

peebles avatar Aug 22 '23 22:08 peebles