{"action":"created","issue":{"url":"https://api.github.com/repos/serverless/components/issues/302","repository_url":"https://api.github.com/repos/serverless/components","labels_url":"https://api.github.com/repos/serverless/components/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/serverless/components/issues/302/comments","events_url":"https://api.github.com/repos/serverless/components/issues/302/events","html_url":"https://github.com/serverless/components/issues/302","id":367321969,"node_id":"MDU6SXNzdWUzNjczMjE5Njk=","number":302,"title":"Running components in a directory with serverless.yml for sls causes crash","user":{"login":"pablojudd","id":3655449,"node_id":"MDQ6VXNlcjM2NTU0NDk=","avatar_url":"https://avatars2.githubusercontent.com/u/3655449?v=4","gravatar_id":"","url":"https://api.github.com/users/pablojudd","html_url":"https://github.com/pablojudd","followers_url":"https://api.github.com/users/pablojudd/followers","following_url":"https://api.github.com/users/pablojudd/following{/other_user}","gists_url":"https://api.github.com/users/pablojudd/gists{/gist_id}","starred_url":"https://api.github.com/users/pablojudd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pablojudd/subscriptions","organizations_url":"https://api.github.com/users/pablojudd/orgs","repos_url":"https://api.github.com/users/pablojudd/repos","events_url":"https://api.github.com/users/pablojudd/events{/privacy}","received_events_url":"https://api.github.com/users/pablojudd/received_events","type":"User","site_admin":false},"labels":[{"id":808784117,"node_id":"MDU6TGFiZWw4MDg3ODQxMTc=","url":"https://api.github.com/repos/serverless/components/labels/good%20first%20issue","name":"good first issue","color":"3B8686","default":true},{"id":808784116,"node_id":"MDU6TGFiZWw4MDg3ODQxMTY=","url":"https://api.github.com/repos/serverless/components/labels/help%20wanted","name":"help wanted","color":"0e8a16","default":true},{"id":808784113,"node_id":"MDU6TGFiZWw4MDg3ODQxMTM=","url":"https://api.github.com/repos/serverless/components/labels/kind/bug","name":"kind/bug","color":"FF8C94","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-05T18:33:08Z","updated_at":"2018-10-13T00:32:51Z","closed_at":null,"author_association":"NONE","body":"# Description\r\nRunning components in a directory with serverless.yml designed for sls causes it to crash. Components should probably exit with a message showing the missing options in serverless.yml\r\n\r\n## Additional Data\r\n```\r\nTypeError: Cannot read property 'self:service' of undefined\r\n    at value.replace (/usr/local/lib/node_modules/serverless-components/src/utils/variables/transformPostExecutionVars.js:18:34)\r\n    at String.replace (<anonymous>)\r\n    at transformValue (/usr/local/lib/node_modules/serverless-components/src/utils/variables/transformPostExecutionVars.js:14:20)\r\n    at XWrap.f (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/map.js:60:20)\r\n    at XWrap.@@transducer/step (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/internal/_xwrap.js:12:17)\r\n    at _arrayReduce (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/internal/_reduce.js:11:34)\r\n    at _reduce (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/internal/_reduce.js:45:12)\r\n    at map (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/map.js:59:14)\r\n    at /usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/internal/_dispatchable.js:41:15\r\n    at f2 (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/internal/_curry2.js:29:14)\r\n    at transformValue (/usr/local/lib/node_modules/serverless-components/src/utils/variables/transformPostExecutionVars.js:11:14)\r\n    at XWrap.f (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/map.js:60:20)\r\n    at XWrap.@@transducer/step (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/internal/_xwrap.js:12:17)\r\n    at _arrayReduce (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/internal/_reduce.js:11:34)\r\n    at _reduce (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/internal/_reduce.js:45:12)\r\n    at map (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/map.js:59:14)\r\n    at /usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/internal/_dispatchable.js:41:15\r\n    at f2 (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/internal/_curry2.js:29:14)\r\n    at transformValue (/usr/local/lib/node_modules/serverless-components/src/utils/variables/transformPostExecutionVars.js:11:14)\r\n    at XWrap.f (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/map.js:60:20)\r\n    at XWrap.@@transducer/step (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/internal/_xwrap.js:12:17)\r\n    at _arrayReduce (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/internal/_reduce.js:11:34)\r\n    at _reduce (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/internal/_reduce.js:45:12)\r\n    at map (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/map.js:59:14)\r\n    at /usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/internal/_dispatchable.js:41:15\r\n    at f2 (/usr/local/lib/node_modules/serverless-components/node_modules/ramda/src/internal/_curry2.js:29:14)\r\n    at module.exports (/usr/local/lib/node_modules/serverless-components/src/utils/variables/transformPostExecutionVars.js:33:10)\r\n    at module.exports (/usr/local/lib/node_modules/serverless-components/src/utils/components/getComponent.js:21:18)\r\n    at <anonymous>\r\n```"},"comment":{"url":"https://api.github.com/repos/serverless/components/issues/comments/429496211","html_url":"https://github.com/serverless/components/issues/302#issuecomment-429496211","issue_url":"https://api.github.com/repos/serverless/components/issues/302","id":429496211,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTQ5NjIxMQ==","user":{"login":"brianneisler","id":1471972,"node_id":"MDQ6VXNlcjE0NzE5NzI=","avatar_url":"https://avatars1.githubusercontent.com/u/1471972?v=4","gravatar_id":"","url":"https://api.github.com/users/brianneisler","html_url":"https://github.com/brianneisler","followers_url":"https://api.github.com/users/brianneisler/followers","following_url":"https://api.github.com/users/brianneisler/following{/other_user}","gists_url":"https://api.github.com/users/brianneisler/gists{/gist_id}","starred_url":"https://api.github.com/users/brianneisler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianneisler/subscriptions","organizations_url":"https://api.github.com/users/brianneisler/orgs","repos_url":"https://api.github.com/users/brianneisler/repos","events_url":"https://api.github.com/users/brianneisler/events{/privacy}","received_events_url":"https://api.github.com/users/brianneisler/received_events","type":"User","site_admin":false},"created_at":"2018-10-13T00:32:51Z","updated_at":"2018-10-13T00:32:51Z","author_association":"MEMBER","body":"Thanks for reporting this issue @pablojudd. Seems like a pretty simple fix. Would be good to simply detect a serverless.yml made for sls and then output that components is not currently backward compatible with a serverless v1 project."}}
{"actor":{"display_login":"brianneisler"}}