{"action":"created","issue":{"url":"https://api.github.com/repos/substack/node-browserify/issues/1588","repository_url":"https://api.github.com/repos/substack/node-browserify","labels_url":"https://api.github.com/repos/substack/node-browserify/issues/1588/labels{/name}","comments_url":"https://api.github.com/repos/substack/node-browserify/issues/1588/comments","events_url":"https://api.github.com/repos/substack/node-browserify/issues/1588/events","html_url":"https://github.com/substack/node-browserify/issues/1588","id":163538242,"number":1588,"title":"can't use require('express')","user":{"login":"neocris","id":1128616,"avatar_url":"https://avatars.githubusercontent.com/u/1128616?v=3","gravatar_id":"","url":"https://api.github.com/users/neocris","html_url":"https://github.com/neocris","followers_url":"https://api.github.com/users/neocris/followers","following_url":"https://api.github.com/users/neocris/following{/other_user}","gists_url":"https://api.github.com/users/neocris/gists{/gist_id}","starred_url":"https://api.github.com/users/neocris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neocris/subscriptions","organizations_url":"https://api.github.com/users/neocris/orgs","repos_url":"https://api.github.com/users/neocris/repos","events_url":"https://api.github.com/users/neocris/events{/privacy}","received_events_url":"https://api.github.com/users/neocris/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-02T22:34:59Z","updated_at":"2016-07-03T00:13:17Z","closed_at":"2016-07-03T00:13:17Z","body":"hi. i'm trying to do this in a js file which later i bundle with browserify and insert in client-side html:\r\n\r\n```\r\nvar http = require('http')\r\nvar express = require('express');\r\nvar exp = express();\r\n```\r\nit's using browserify port of node's native http module and npm express module, but it gives me an `TypeError: http.IncomingMessage is undefined` on the `require('express')` statement. what's going on? i'm guessing that i can't use express locally because it needs some node apparatus not provided by browserify bindings, namely listening on ports and such, is that it?"},"comment":{"url":"https://api.github.com/repos/substack/node-browserify/issues/comments/230128289","html_url":"https://github.com/substack/node-browserify/issues/1588#issuecomment-230128289","issue_url":"https://api.github.com/repos/substack/node-browserify/issues/1588","id":230128289,"user":{"login":"substack","id":12631,"avatar_url":"https://avatars.githubusercontent.com/u/12631?v=3","gravatar_id":"","url":"https://api.github.com/users/substack","html_url":"https://github.com/substack","followers_url":"https://api.github.com/users/substack/followers","following_url":"https://api.github.com/users/substack/following{/other_user}","gists_url":"https://api.github.com/users/substack/gists{/gist_id}","starred_url":"https://api.github.com/users/substack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/substack/subscriptions","organizations_url":"https://api.github.com/users/substack/orgs","repos_url":"https://api.github.com/users/substack/repos","events_url":"https://api.github.com/users/substack/events{/privacy}","received_events_url":"https://api.github.com/users/substack/received_events","type":"User","site_admin":false},"created_at":"2016-07-03T00:13:17Z","updated_at":"2016-07-03T00:13:17Z","body":"browserify's http implementation only includes the client part of http, not the server implementation. The core http server in node extends the tcp server implementation, so that won't work in browsers by default."}}
{"actor":{"display_login":"substack"}}