Closed noudadrichem closed 1 year ago
Experiencing the exact same issue, only occurs when mountCode: true
.
Confirmed the above. This is only happening when mountCode: true
is set.
It happens to me too when mountCode: true
is set.
Also confirming, that it happens when mountCode: true
is set.
The reason for that is that for some reason this.state
is not defined in line 169 } else if (this.state.console) {
Confirming as well. This seems to be a recent addition in severless, related to aws console support in release 3.4.0 (2022-02-25). Downgrading to 3.3.0 fixed the issue for me.
This still seems to be an issue in Serverless 3.17
Hi @noudadrichem @rasmusfahnoe @samwiseduzer @berlinger-ciprianpetrisor @juha-finlabs @mkkurt @brennan-karrer , thanks for reporting. We have now pushed a new version serverless-localstack@0.4.36
with a small fix - can you please try upgrading and confirm if the issue is resolved with the latest version? Thanks!
Closing this as resolved. Please let us know if the problem persists.. Thanks!
Hi, I created this issue on https://github.com/serverless/serverless/issues/10770 but high chance it's related to this.
Are you certain it's a bug?
Is the issue caused by a plugin?
Are you using the latest version?
Is there an existing issue for this?
Issue description
tl;dr: Either the rest API and SQS worker examples give an error when deploying to localstack.
I'm following the documentation to test out serverless with LocalStack. I'm using the
serverless
command to init a starter project.I'm using this tutorial to add deployment to localstack: https://www.serverless.com/plugins/serverless-localstack
What I get back is this stdout: (I added this to the issue)
I'm unsure if this is plugin issue or not as the file the error occurs in is
lib/node_modules/serverless/lib/plugins/aws/deploy/index.js:169:31)
where it clearly saysthis.console
but it is not defined in the class code.Service configuration (serverless.yml) content
Command name and used flags
serverless deploy --stage local
Command output
Environment information