{"action":"reopened","issue":{"url":"https://api.github.com/repos/chunkai1312/express-error-slack/issues/2","repository_url":"https://api.github.com/repos/chunkai1312/express-error-slack","labels_url":"https://api.github.com/repos/chunkai1312/express-error-slack/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/chunkai1312/express-error-slack/issues/2/comments","events_url":"https://api.github.com/repos/chunkai1312/express-error-slack/issues/2/events","html_url":"https://github.com/chunkai1312/express-error-slack/issues/2","id":314965909,"number":2,"title":"Is README.md  correct? actually updated ?","user":{"login":"tomlla","id":9420870,"avatar_url":"https://avatars1.githubusercontent.com/u/9420870?v=4","gravatar_id":"","url":"https://api.github.com/users/tomlla","html_url":"https://github.com/tomlla","followers_url":"https://api.github.com/users/tomlla/followers","following_url":"https://api.github.com/users/tomlla/following{/other_user}","gists_url":"https://api.github.com/users/tomlla/gists{/gist_id}","starred_url":"https://api.github.com/users/tomlla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomlla/subscriptions","organizations_url":"https://api.github.com/users/tomlla/orgs","repos_url":"https://api.github.com/users/tomlla/repos","events_url":"https://api.github.com/users/tomlla/events{/privacy}","received_events_url":"https://api.github.com/users/tomlla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-17T08:56:48Z","updated_at":"2018-04-17T10:50:09Z","closed_at":null,"author_association":"NONE","body":"I read README.md and append this code to my node  app.\r\n\r\n```\r\nconst express = require('express');\r\nconst errorToSlack = require('express-error-slack');\r\n\r\nconst server = express();\r\nserver.use(errorToSlack({ webhookUri: config.slack.webhookUri }))\r\n```\r\n\r\nand When I started my node app, I got this error,\r\n\r\n```\r\nTypeError: errorToSlack is not a function\r\n```\r\n\r\nI tried to debug  with `node's debugger`.\r\nHere is repl log.\r\n\r\n```\r\nconst errorToSlack = require('express-error-slack');\r\n\r\n> errorToSlack\r\n{ sendErrorToSlack: , default: , __esModule: true }\r\n> errorToSlack.default\r\n[Function]\r\n> errorToSlack.sendErrorToSlack\r\n[Function: sendErrorToSlack]\r\n```\r\n\r\nI think ` server.use(errorToSlack({ webhookUri: ... }))` is not correct, and I have to use `errorToSlack.default()`or `errorToSlack.sendErrorToSlack`\r\n\r\nDoes anyone tell me how to use `express-error-slack`?"}}
{"actor":{"display_login":"chunkai1312"}}