{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack-dev-middleware/issues/291","repository_url":"https://api.github.com/repos/webpack/webpack-dev-middleware","labels_url":"https://api.github.com/repos/webpack/webpack-dev-middleware/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-middleware/issues/291/comments","events_url":"https://api.github.com/repos/webpack/webpack-dev-middleware/issues/291/events","html_url":"https://github.com/webpack/webpack-dev-middleware/issues/291","id":311230576,"number":291,"title":"`writeToDisk` crashes if chalk isn't installed","user":{"login":"bebraw","id":166921,"avatar_url":"https://avatars0.githubusercontent.com/u/166921?v=4","gravatar_id":"","url":"https://api.github.com/users/bebraw","html_url":"https://github.com/bebraw","followers_url":"https://api.github.com/users/bebraw/followers","following_url":"https://api.github.com/users/bebraw/following{/other_user}","gists_url":"https://api.github.com/users/bebraw/gists{/gist_id}","starred_url":"https://api.github.com/users/bebraw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bebraw/subscriptions","organizations_url":"https://api.github.com/users/bebraw/orgs","repos_url":"https://api.github.com/users/bebraw/repos","events_url":"https://api.github.com/users/bebraw/events{/privacy}","received_events_url":"https://api.github.com/users/bebraw/received_events","type":"User","site_admin":false},"labels":[{"id":428474224,"url":"https://api.github.com/repos/webpack/webpack-dev-middleware/labels/P1:%20Urgent","name":"P1: Urgent","color":"d93f0b","default":false},{"id":779693843,"url":"https://api.github.com/repos/webpack/webpack-dev-middleware/labels/X0:%20need%20more%20information","name":"X0: need more information","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-04-04T13:30:13Z","updated_at":"2018-04-05T18:06:48Z","closed_at":"2018-04-05T00:20:20Z","author_association":"MEMBER","body":"\r\n* Operating System: n/a\r\n* Node Version: n/a\r\n* NPM Version: n/a\r\n* webpack version: n/a\r\n* webpack-dev-middleware Version: n/a\r\n\r\n- [ ] This is a **feature** request\r\n- [x] This is a **bug**\r\n\r\n### Code\r\n\r\n```js\r\n// please provide your webpack.config.js for bug reports\r\n```\r\n\r\n```js\r\n// additional code\r\n```\r\n\r\n### Expected Behavior\r\n\r\nCrashy McCrashster\r\n\r\n### Actual Behavior\r\n\r\n### For Bugs; How can we reproduce the behavior?\r\n\r\nIf `writeToDisk` is enabled, the middleware tries to use `chalk`. The middleware doesn't specify it in its dependencies, though, and if the project where you are using it doesn't have it installed, it will crash the middleware.\r\n\r\nAt the very least the middleware should specify a suitable version of chalk as a peer dependency so people know to install it.\r\n\r\n### For Features; What is the motivation and/or use-case for the feature?\r\n"},"comment":{"url":"https://api.github.com/repos/webpack/webpack-dev-middleware/issues/comments/379026201","html_url":"https://github.com/webpack/webpack-dev-middleware/issues/291#issuecomment-379026201","issue_url":"https://api.github.com/repos/webpack/webpack-dev-middleware/issues/291","id":379026201,"user":{"login":"shellscape","id":76371,"avatar_url":"https://avatars1.githubusercontent.com/u/76371?v=4","gravatar_id":"","url":"https://api.github.com/users/shellscape","html_url":"https://github.com/shellscape","followers_url":"https://api.github.com/users/shellscape/followers","following_url":"https://api.github.com/users/shellscape/following{/other_user}","gists_url":"https://api.github.com/users/shellscape/gists{/gist_id}","starred_url":"https://api.github.com/users/shellscape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shellscape/subscriptions","organizations_url":"https://api.github.com/users/shellscape/orgs","repos_url":"https://api.github.com/users/shellscape/repos","events_url":"https://api.github.com/users/shellscape/events{/privacy}","received_events_url":"https://api.github.com/users/shellscape/received_events","type":"User","site_admin":false},"created_at":"2018-04-05T18:06:48Z","updated_at":"2018-04-05T18:06:48Z","author_association":"COLLABORATOR","body":"Resolved in v3.1.2. Please open a new issue if you'd like to continue discussing this, as the original issue as reported by @bebraw has been resolved."}}
{"actor":{"display_login":"shellscape"}}