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

TypeError: Cannot read property 'length' of undefined #74

Open
telanniranga opened this issue Jul 30, 2020 · 6 comments
Open

TypeError: Cannot read property 'length' of undefined #74

telanniranga opened this issue Jul 30, 2020 · 6 comments

Comments

@telanniranga
Copy link

Getting this error when use the s3Sync with python. Followiing is my yaml file.

`provider:
name: aws
runtime: python3.7
region: ${opt:region, 'us-east-1'}

custom:
s3Sync:
- bucketName: abc
localDir: localfiles

functions:
hello:
handler: handler.hello

plugins:

  • serverless-python-requirements
  • serverless-s3-sync`
@telanniranga
Copy link
Author

Do you have any resolution for this issue?

@alonaddy
Copy link

alonaddy commented Apr 21, 2021

I am getting the same thing :-(

sls s3sync

Does work though ...

@telanniranga
Copy link
Author

Since I was not able to get a resolution for this, I used a different approach.

I used this plugin https://www.npmjs.com/package/serverless-scriptable-plugin and that will help you as well. This is more flexible and you can run any command based on serverless events.

@asabi
Copy link

asabi commented Apr 27, 2021

Interesting, I ended up using serverless-s3-deploy. Works really well.

hope that helps someone.

@felipeespitalher
Copy link

I'm facing same problem and since serverless-s3-deploy is not maintained anymore ... could you fix it ?

@zsan
Copy link

zsan commented Feb 9, 2022

I did the following steps:

  1. Upgrade node to v16.14.0 (it was v14.17.6)
  2. remove directory node_modules in the project's directory
  3. re install all plugins

And the error just gone.

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

5 participants