{"action":"created","issue":{"url":"https://api.github.com/repos/NodeRedis/node_redis/issues/790","repository_url":"https://api.github.com/repos/NodeRedis/node_redis","labels_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/790/labels{/name}","comments_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/790/comments","events_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/790/events","html_url":"https://github.com/NodeRedis/node_redis/issues/790","id":97766267,"number":790,"title":"Error while building with webpack","user":{"login":"Dindaleon","id":7036726,"avatar_url":"https://avatars3.githubusercontent.com/u/7036726?v=4","gravatar_id":"","url":"https://api.github.com/users/Dindaleon","html_url":"https://github.com/Dindaleon","followers_url":"https://api.github.com/users/Dindaleon/followers","following_url":"https://api.github.com/users/Dindaleon/following{/other_user}","gists_url":"https://api.github.com/users/Dindaleon/gists{/gist_id}","starred_url":"https://api.github.com/users/Dindaleon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dindaleon/subscriptions","organizations_url":"https://api.github.com/users/Dindaleon/orgs","repos_url":"https://api.github.com/users/Dindaleon/repos","events_url":"https://api.github.com/users/Dindaleon/events{/privacy}","received_events_url":"https://api.github.com/users/Dindaleon/received_events","type":"User","site_admin":false},"labels":[{"id":256443112,"url":"https://api.github.com/repos/NodeRedis/node_redis/labels/question","name":"question","color":"5319e7","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2015-07-28T18:07:20Z","updated_at":"2017-07-30T14:22:16Z","closed_at":"2015-09-04T16:25:29Z","body":"I am getting the following error when building with webpack:\n\n```\nERROR in ./~/redis/lib/parser/hiredis.js\nModule not found: Error: Cannot resolve module 'hiredis' in C:\\NodeServer\\AppInTheWild\\node_modules\\redis\\lib\\parser\n @ ./~/redis/lib/parser/hiredis.js 3:14-32\n```\n\nI do not want to install hiredis as a depency. What solution do I have?\n"},"comment":{"url":"https://api.github.com/repos/NodeRedis/node_redis/issues/comments/318904983","html_url":"https://github.com/NodeRedis/node_redis/issues/790#issuecomment-318904983","issue_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/790","id":318904983,"user":{"login":"outsidenote","id":13084000,"avatar_url":"https://avatars0.githubusercontent.com/u/13084000?v=4","gravatar_id":"","url":"https://api.github.com/users/outsidenote","html_url":"https://github.com/outsidenote","followers_url":"https://api.github.com/users/outsidenote/followers","following_url":"https://api.github.com/users/outsidenote/following{/other_user}","gists_url":"https://api.github.com/users/outsidenote/gists{/gist_id}","starred_url":"https://api.github.com/users/outsidenote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outsidenote/subscriptions","organizations_url":"https://api.github.com/users/outsidenote/orgs","repos_url":"https://api.github.com/users/outsidenote/repos","events_url":"https://api.github.com/users/outsidenote/events{/privacy}","received_events_url":"https://api.github.com/users/outsidenote/received_events","type":"User","site_admin":false},"created_at":"2017-07-30T14:22:16Z","updated_at":"2017-07-30T14:22:16Z","body":"Had the same error, and got it working by borrowing the solution from [here](https://github.com/elastic-coders/serverless-webpack/issues/78).\r\n\r\nSo the relevant snippet in `webpack.config.js` looks like this:\r\n```\r\nresolve: {\r\n  alias: {\r\n    'hiredis': path.join(__dirname, 'aliases/hiredis.js')\r\n  }\r\n}\r\n```\r\n\r\nAnd also I created the file `aliases/hiredis.js` that has the following content:\r\n```\r\nexport default null\r\n```"}}
{"actor":{"display_login":"outsidenote"}}