Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin not working after upgrading to SLS v3 #281

Open
henhal opened this issue Mar 8, 2022 · 2 comments
Open

Plugin not working after upgrading to SLS v3 #281

henhal opened this issue Mar 8, 2022 · 2 comments

Comments

@henhal
Copy link
Contributor

henhal commented Mar 8, 2022

Actual Behaviour

After updating serverless to v3, I get the following error:

npx sls dynamodb migrate --stage test
Environment: darwin, node 14.18.1, framework 3.7.1 (local), plugin 6.1.5, SDK 4.3.2
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
Cannot resolve serverless.yml: Variables resolution errored with:
  - Cannot resolve variable at "provider.environment": Value not found at "file" source

Expected Behaviour

Start dynamodb local as usual

Steps to reproduce it

Install serverless@3
run `sls dynamodb migrate``

LogCat for the issue

Screenshots of the issue

Would you like to work on the issue?

@ignas-g
Copy link

ignas-g commented Apr 19, 2022

Getting a different error with v3 when running:
sls dynamodb install
TypeError: Cannot convert undefined or null to object

@MrNoyce
Copy link

MrNoyce commented Nov 2, 2022

Hello @henhal,

I found a similar issue when running yarn sls dynamodb seed after upgrading to v3. However, if you modify the command to be STAGE={yourStageNameHere} yarn sls dynamodb seed ......., this fixed the issue for me.

Also having provider.stage: ${env:STAGE} set in the serverless.yml will be required.

I hope this helps as I just discovered this now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants