{"action":"created","issue":{"url":"https://api.github.com/repos/senecajs/senecajs.org/issues/282","repository_url":"https://api.github.com/repos/senecajs/senecajs.org","labels_url":"https://api.github.com/repos/senecajs/senecajs.org/issues/282/labels{/name}","comments_url":"https://api.github.com/repos/senecajs/senecajs.org/issues/282/comments","events_url":"https://api.github.com/repos/senecajs/senecajs.org/issues/282/events","html_url":"https://github.com/senecajs/senecajs.org/issues/282","id":189387869,"number":282,"title":"Seneca Getting Started Example issue - app.use() requires middleware functions","user":{"login":"LogOg","id":16573788,"avatar_url":"https://avatars.githubusercontent.com/u/16573788?v=3","gravatar_id":"","url":"https://api.github.com/users/LogOg","html_url":"https://github.com/LogOg","followers_url":"https://api.github.com/users/LogOg/followers","following_url":"https://api.github.com/users/LogOg/following{/other_user}","gists_url":"https://api.github.com/users/LogOg/gists{/gist_id}","starred_url":"https://api.github.com/users/LogOg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LogOg/subscriptions","organizations_url":"https://api.github.com/users/LogOg/orgs","repos_url":"https://api.github.com/users/LogOg/repos","events_url":"https://api.github.com/users/LogOg/events{/privacy}","received_events_url":"https://api.github.com/users/LogOg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-15T13:11:48Z","updated_at":"2016-12-15T12:49:53Z","closed_at":null,"body":"When running app.js from: http://senecajs.org/getting-started/\r\ni.e. :\r\nvar seneca = require('seneca')()\r\n\t.use('api')\r\n\t.client({type:'tcp',pin:'role:math'})\r\nvar app = require('express')()\r\n\t.use(require('body-parser').json())\r\n\t.use(seneca.export('web'))\r\n\t.listen(3000)\r\n\r\nAs follows: node app.js --seneca.log=plugin:web,plugin:api\r\nGet the following for line .use(seneca.export('web')):\r\n\r\n{\"kind\":\"notice\",\"notice\":\"hello seneca p0r05xeeb8ir/1479215163013/6993/3.2.2/-\",\"level\":\"info\",\"when\":1479215163052}\r\n[]\r\n/Users/macbookpro/worknode/node_modules/express/lib/application.js:209\r\n    throw new TypeError('app.use() requires middleware functions');\r\n    ^\r\nTypeError: app.use() requires middleware functions\r\n    at Function.use (/Users/macbookpro/worknode/node_modules/express/lib/application.js:209:11)\r\n    at Object.<anonymous> (/Users/macbookpro/worknode/microservice/app.js:9:3)\r\n    at Module._compile (module.js:573:32)\r\n    at Object.Module._extensions..js (module.js:582:10)\r\n    at Module.load (module.js:490:32)\r\n    at tryModuleLoad (module.js:449:12)\r\n    at Function.Module._load (module.js:441:3)\r\n    at Module.runMain (module.js:607:10)\r\n    at run (bootstrap_node.js:382:7)\r\n    at startup (bootstrap_node.js:137:9)"},"comment":{"url":"https://api.github.com/repos/senecajs/senecajs.org/issues/comments/267319855","html_url":"https://github.com/senecajs/senecajs.org/issues/282#issuecomment-267319855","issue_url":"https://api.github.com/repos/senecajs/senecajs.org/issues/282","id":267319855,"user":{"login":"Shobhit28","id":4429146,"avatar_url":"https://avatars.githubusercontent.com/u/4429146?v=3","gravatar_id":"","url":"https://api.github.com/users/Shobhit28","html_url":"https://github.com/Shobhit28","followers_url":"https://api.github.com/users/Shobhit28/followers","following_url":"https://api.github.com/users/Shobhit28/following{/other_user}","gists_url":"https://api.github.com/users/Shobhit28/gists{/gist_id}","starred_url":"https://api.github.com/users/Shobhit28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shobhit28/subscriptions","organizations_url":"https://api.github.com/users/Shobhit28/orgs","repos_url":"https://api.github.com/users/Shobhit28/repos","events_url":"https://api.github.com/users/Shobhit28/events{/privacy}","received_events_url":"https://api.github.com/users/Shobhit28/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T12:49:53Z","updated_at":"2016-12-15T12:49:53Z","body":"I am facing the same issue . Any fix @LogOg ?"}}
{"actor":{"display_login":"Shobhit28"}}