{"action":"created","issue":{"url":"https://api.github.com/repos/Masquerade-Circus/micro-ex-router/issues/1","repository_url":"https://api.github.com/repos/Masquerade-Circus/micro-ex-router","labels_url":"https://api.github.com/repos/Masquerade-Circus/micro-ex-router/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Masquerade-Circus/micro-ex-router/issues/1/comments","events_url":"https://api.github.com/repos/Masquerade-Circus/micro-ex-router/issues/1/events","html_url":"https://github.com/Masquerade-Circus/micro-ex-router/issues/1","id":241565602,"number":1,"title":"ReferenceError: regeneratorRuntime is not defined","user":{"login":"pdehaan","id":557895,"avatar_url":"https://avatars1.githubusercontent.com/u/557895?v=3","gravatar_id":"","url":"https://api.github.com/users/pdehaan","html_url":"https://github.com/pdehaan","followers_url":"https://api.github.com/users/pdehaan/followers","following_url":"https://api.github.com/users/pdehaan/following{/other_user}","gists_url":"https://api.github.com/users/pdehaan/gists{/gist_id}","starred_url":"https://api.github.com/users/pdehaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdehaan/subscriptions","organizations_url":"https://api.github.com/users/pdehaan/orgs","repos_url":"https://api.github.com/users/pdehaan/repos","events_url":"https://api.github.com/users/pdehaan/events{/privacy}","received_events_url":"https://api.github.com/users/pdehaan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-09T22:46:03Z","updated_at":"2017-07-10T02:31:55Z","closed_at":null,"body":"Not sure if I'm using something wrong, or if I need to add some extra dependencies, but this is the error I get when I try and run the sample from the README.md file:\r\n\r\n> _\"ReferenceError: regeneratorRuntime is not defined\"_\r\n\r\n---\r\n\r\n```sh\r\n$ cat package.json\r\n{\r\n  \"name\": \"micro-router-test\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"start\": \"node index\"\r\n  },\r\n  \"author\": \"Peter deHaan <peter@deseloper.com> (https://about.me/peterdehaan)\",\r\n  \"license\": \"WTFPL\",\r\n  \"dependencies\": {\r\n    \"micro\": \"7.3.3\",\r\n    \"micro-ex-router\": \"1.1.0\"\r\n  }\r\n}\r\n```\r\n\r\n```sh\r\n$ cat index.js\r\nlet micro = require('micro');\r\nlet Router = require('micro-ex-router');\r\n\r\n// Create a new router\r\nlet router = Router();\r\n\r\nrouter\r\n    // Use middlewares available to all routes\r\n    .use((req, res) => console.log(req.url))\r\n\r\n    // Default returned responses\r\n    .get('/', () => 'Welcome to micro')\r\n\r\n    // Parametrized paths\r\n    .get('/hello/:world', (req, res) => ({message: `Hello ${req.params.world}`}))\r\n\r\n    // Sequenced middlewares no need to use next callback,\r\n    // All middlewares are processed as async\r\n    // The first returned response will be sent to the client\r\n    .get('/hello/:world/whats/:up', [\r\n        (req, res) => {\r\n            res.locals = {};\r\n            res.locals.response = {message: `Hello ${req.params.world} whats ${req.params.up}`};\r\n        },\r\n        (req, res) => {\r\n            return res.locals.response;\r\n        }\r\n    ])\r\n\r\n    // Default parsed body for all methods other than get\r\n    // Based on the Content-Type parses json, formurlencoded, text and and buffer\r\n    .post('/hello', () => req.body)\r\n\r\n    // Default parsed query parameters\r\n    // if you call /hello/with/params?hello=world\r\n    // then req.query = {hello: \"world\"}\r\n    .get('/hello/with/params', () => req.query)\r\n;\r\n\r\n// Init micro server\r\nlet server = micro(router);\r\n\r\nserver.listen(3000, () => console.log('Micro listening on port 3000'));\r\n```\r\n\r\n```sh\r\n$ npm start\r\n\r\n> micro-router-test@1.0.0 start /Users/pdehaan/dev/tmp/del/micro-router-test\r\n> node index\r\n\r\n/Users/pdehaan/dev/tmp/del/micro-router-test/node_modules/micro-ex-router/dist/index.js:4137\r\n        var _ref = asyncToGenerator(regeneratorRuntime.mark(function _callee(req, res) {\r\n                                    ^\r\n\r\nReferenceError: regeneratorRuntime is not defined\r\n    at /Users/pdehaan/dev/tmp/del/micro-router-test/node_modules/micro-ex-router/dist/index.js:4137:37\r\n    at RouterFactory (/Users/pdehaan/dev/tmp/del/micro-router-test/node_modules/micro-ex-router/dist/index.js:4266:6)\r\n    at Object.<anonymous> (/Users/pdehaan/dev/tmp/del/micro-router-test/index.js:5:14)\r\n    at Module._compile (module.js:569:30)\r\n    at Object.Module._extensions..js (module.js:580:10)\r\n    at Module.load (module.js:503:32)\r\n    at tryModuleLoad (module.js:466:12)\r\n    at Function.Module._load (module.js:458:3)\r\n    at Function.Module.runMain (module.js:605:10)\r\n    at startup (bootstrap_node.js:158:16)\r\n    at bootstrap_node.js:575:3\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! micro-router-test@1.0.0 start: `node index`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the micro-router-test@1.0.0 start script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /Users/pdehaan/.npm/_logs/2017-07-09T22_43_34_430Z-debug.log\r\n```\r\n\r\n```sh\r\n$ npm version\r\n{ 'micro-router-test': '1.0.0',\r\n  npm: '5.0.3',\r\n  ares: '1.10.1-DEV',\r\n  cldr: '31.0.1',\r\n  http_parser: '2.7.0',\r\n  icu: '59.1',\r\n  modules: '57',\r\n  node: '8.1.2',\r\n  openssl: '1.0.2l',\r\n  tz: '2017b',\r\n  unicode: '9.0',\r\n  uv: '1.12.0',\r\n  v8: '5.8.283.41',\r\n  zlib: '1.2.11' }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Masquerade-Circus/micro-ex-router/issues/comments/313987036","html_url":"https://github.com/Masquerade-Circus/micro-ex-router/issues/1#issuecomment-313987036","issue_url":"https://api.github.com/repos/Masquerade-Circus/micro-ex-router/issues/1","id":313987036,"user":{"login":"zhaoyao91","id":3808838,"avatar_url":"https://avatars0.githubusercontent.com/u/3808838?v=3","gravatar_id":"","url":"https://api.github.com/users/zhaoyao91","html_url":"https://github.com/zhaoyao91","followers_url":"https://api.github.com/users/zhaoyao91/followers","following_url":"https://api.github.com/users/zhaoyao91/following{/other_user}","gists_url":"https://api.github.com/users/zhaoyao91/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaoyao91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaoyao91/subscriptions","organizations_url":"https://api.github.com/users/zhaoyao91/orgs","repos_url":"https://api.github.com/users/zhaoyao91/repos","events_url":"https://api.github.com/users/zhaoyao91/events{/privacy}","received_events_url":"https://api.github.com/users/zhaoyao91/received_events","type":"User","site_admin":false},"created_at":"2017-07-10T02:31:55Z","updated_at":"2017-07-10T02:31:55Z","body":"I face the same problem too"}}
{"actor":{"display_login":"zhaoyao91"}}