{"action":"created","issue":{"url":"https://api.github.com/repos/awslabs/aws-sam-cli/issues/208","repository_url":"https://api.github.com/repos/awslabs/aws-sam-cli","labels_url":"https://api.github.com/repos/awslabs/aws-sam-cli/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/aws-sam-cli/issues/208/comments","events_url":"https://api.github.com/repos/awslabs/aws-sam-cli/issues/208/events","html_url":"https://github.com/awslabs/aws-sam-cli/issues/208","id":278411613,"node_id":"MDU6SXNzdWUyNzg0MTE2MTM=","number":208,"title":"Invoking sam local invoke returns an Unable to import module 'index': Error","user":{"login":"kyeljmd","id":5059120,"node_id":"MDQ6VXNlcjUwNTkxMjA=","avatar_url":"https://avatars2.githubusercontent.com/u/5059120?v=4","gravatar_id":"","url":"https://api.github.com/users/kyeljmd","html_url":"https://github.com/kyeljmd","followers_url":"https://api.github.com/users/kyeljmd/followers","following_url":"https://api.github.com/users/kyeljmd/following{/other_user}","gists_url":"https://api.github.com/users/kyeljmd/gists{/gist_id}","starred_url":"https://api.github.com/users/kyeljmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyeljmd/subscriptions","organizations_url":"https://api.github.com/users/kyeljmd/orgs","repos_url":"https://api.github.com/users/kyeljmd/repos","events_url":"https://api.github.com/users/kyeljmd/events{/privacy}","received_events_url":"https://api.github.com/users/kyeljmd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2017-12-01T09:50:13Z","updated_at":"2018-06-01T00:05:43Z","closed_at":"2018-06-01T00:05:43Z","author_association":"NONE","body":"I'm trying to play with the Hello-world example located in the samples of the repository. However upon invoking  `sam local invoke \"HelloWorld\" -e event.json` inside the directory where the index, template.yml and is located. \r\n\r\nit automatically returns the ff:\r\n\r\n`START RequestId: e50a858c-69d8-16fc-02d3-70199542bc48 Version: $LATEST\r\nUnable to import module 'index': Error\r\n    at Function.Module._resolveFilename (module.js:469:15)\r\n    at Function.Module._load (module.js:417:25)\r\n    at Module.require (module.js:497:17)\r\n    at require (internal/module.js:20:19)\r\nEND RequestId: e50a858c-69d8-16fc-02d3-70199542bc48\r\nREPORT RequestId: e50a858c-69d8-16fc-02d3-70199542bc48  Duration: 31.25 ms      Billed Duration: 0 ms   Memory Size: 0 M`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/awslabs/aws-sam-cli/issues/comments/393719746","html_url":"https://github.com/awslabs/aws-sam-cli/issues/208#issuecomment-393719746","issue_url":"https://api.github.com/repos/awslabs/aws-sam-cli/issues/208","id":393719746,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzcxOTc0Ng==","user":{"login":"sanathkr","id":22755571,"node_id":"MDQ6VXNlcjIyNzU1NTcx","avatar_url":"https://avatars3.githubusercontent.com/u/22755571?v=4","gravatar_id":"","url":"https://api.github.com/users/sanathkr","html_url":"https://github.com/sanathkr","followers_url":"https://api.github.com/users/sanathkr/followers","following_url":"https://api.github.com/users/sanathkr/following{/other_user}","gists_url":"https://api.github.com/users/sanathkr/gists{/gist_id}","starred_url":"https://api.github.com/users/sanathkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanathkr/subscriptions","organizations_url":"https://api.github.com/users/sanathkr/orgs","repos_url":"https://api.github.com/users/sanathkr/repos","events_url":"https://api.github.com/users/sanathkr/events{/privacy}","received_events_url":"https://api.github.com/users/sanathkr/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T00:05:43Z","updated_at":"2018-06-01T00:05:43Z","author_association":"CONTRIBUTOR","body":"Thanks everyone for the instructions to fix this issue. It is not a SAM CLI bug but a mis-configuration in the Docker sharing settings. Hence closing the issue"}}
{"actor":{"display_login":"sanathkr"}}