{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/angular2-seed/issues/51","repository_url":"https://api.github.com/repos/angular/angular2-seed","labels_url":"https://api.github.com/repos/angular/angular2-seed/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular2-seed/issues/51/comments","events_url":"https://api.github.com/repos/angular/angular2-seed/issues/51/events","html_url":"https://github.com/angular/angular2-seed/issues/51","id":141377041,"number":51,"title":"Run \"npm start\" error: \"Cannot resolve module 'process'\"","user":{"login":"KostyaTretyak","id":2286306,"avatar_url":"https://avatars.githubusercontent.com/u/2286306?v=3","gravatar_id":"","url":"https://api.github.com/users/KostyaTretyak","html_url":"https://github.com/KostyaTretyak","followers_url":"https://api.github.com/users/KostyaTretyak/followers","following_url":"https://api.github.com/users/KostyaTretyak/following{/other_user}","gists_url":"https://api.github.com/users/KostyaTretyak/gists{/gist_id}","starred_url":"https://api.github.com/users/KostyaTretyak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KostyaTretyak/subscriptions","organizations_url":"https://api.github.com/users/KostyaTretyak/orgs","repos_url":"https://api.github.com/users/KostyaTretyak/repos","events_url":"https://api.github.com/users/KostyaTretyak/events{/privacy}","received_events_url":"https://api.github.com/users/KostyaTretyak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-16T19:27:52Z","updated_at":"2016-03-20T20:25:47Z","closed_at":"2016-03-20T20:25:47Z","body":"I have npm v2.14.20, node v5.8.0, and when `npm srart` throw many errors with `Cannot resolve module 'process'`:\r\n```\r\nERROR in (webpack)-dev-server/~/sockjs-client/lib/main.js\r\nModule not found: Error: Cannot resolve module 'process' in /var/www/angular2-seed/node_modules/webpack-dev-server/node_modules/sockjs-client/lib\r\n @ (webpack)-dev-server/~/sockjs-client/lib/main.js 1:0-18\r\n...\r\n```\r\n\r\nWhen I removed `process: 1` from `webpack.config.js`\r\n```javascript\r\n// ...\r\n  node: {\r\n    global: 1,\r\n    process: 1,\r\n    crypto: 'empty',\r\n    module: 0,\r\n    Buffer: 0,\r\n    clearImmediate: 0,\r\n    setImmediate: 0\r\n  },\r\n// ...\r\n```\r\n\r\nstart OK, but in Google Chrome error:\r\n```\r\nUncaught (in promise) TypeError: object is not a constructor\r\n    at then (native)\r\n```"}}