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

yaml exception with example code in README #54

Open
paolini opened this issue Sep 3, 2017 · 5 comments
Open

yaml exception with example code in README #54

paolini opened this issue Sep 3, 2017 · 5 comments

Comments

@paolini
Copy link

paolini commented Sep 3, 2017

In REAMDE.md you suggest to add these line to serverless.yml:

plugins:
  - serverless-client-s3
 custom:
   client:
     bucketName: serverless-client-bucketname

however this seems not to be valid yml. When executing serverless client deploy I get the following YAML exception:

  bad indentation of a mapping entry in "/Users/paolini/notes/serverless.yml" at line 59, column 2:
     custom:
     ^

@lucasklaassen
Copy link

I believe plugins and custom should be matched up with the same indentation.

@paolini
Copy link
Author

paolini commented Sep 4, 2017

With the same indentation I get this error:

Serverless plugin "serverless-client-s3" not found. Make sure it's installed and listed in the "plugins" section of your serverless config file.

The package has been installed as described in the documentation.

added I suspect this is a problem of interaction between yarn (which I was using) and npm.

paolini added a commit to paolini/node-notes that referenced this issue Sep 4, 2017
@lucasklaassen
Copy link

Can you include your package.json file here?

@paolini
Copy link
Author

paolini commented Sep 4, 2017

my package.json

{
  "name": "notes",
  "version": "0.0.1",
  "description": "notes",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "emanuele.paolini@gmail.com",
  "license": "ISC",
  "devDependencies": {
    "express": "^4.15.4"
  },
  "dependencies": {
    "aws-sdk": "^2.108.0",
    "serverless": "^1.21.0",
    "serverless-client-s3": "^2.0.0"
  }
}

@paolini
Copy link
Author

paolini commented Sep 5, 2017

Ok, this is actually issue #53. So the problem with the yml file should be solved by removing a space before custom: in README.md

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

2 participants