{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/compression-webpack-plugin/issues/16","repository_url":"https://api.github.com/repos/webpack/compression-webpack-plugin","labels_url":"https://api.github.com/repos/webpack/compression-webpack-plugin/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/webpack/compression-webpack-plugin/issues/16/comments","events_url":"https://api.github.com/repos/webpack/compression-webpack-plugin/issues/16/events","html_url":"https://github.com/webpack/compression-webpack-plugin/issues/16","id":128435950,"number":16,"title":"TypeError: Invalid non-string/buffer chunk in v0.3 (worked in v0.2).","user":{"login":"samkelleher","id":277884,"avatar_url":"https://avatars.githubusercontent.com/u/277884?v=3","gravatar_id":"","url":"https://api.github.com/users/samkelleher","html_url":"https://github.com/samkelleher","followers_url":"https://api.github.com/users/samkelleher/followers","following_url":"https://api.github.com/users/samkelleher/following{/other_user}","gists_url":"https://api.github.com/users/samkelleher/gists{/gist_id}","starred_url":"https://api.github.com/users/samkelleher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samkelleher/subscriptions","organizations_url":"https://api.github.com/users/samkelleher/orgs","repos_url":"https://api.github.com/users/samkelleher/repos","events_url":"https://api.github.com/users/samkelleher/events{/privacy}","received_events_url":"https://api.github.com/users/samkelleher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-01-25T00:20:18Z","updated_at":"2016-02-05T16:43:57Z","closed_at":null,"body":"In the webpack config under `plugins`.\r\n```\r\nnew CompressionPlugin({    \r\n   test: /\\.js$/\r\n})\r\n```\r\n\r\nThe `regExp` was renamed as per the breaking change. But nothing else has changed. The build will succeed in v0.2 but gets the error in v0.3\r\n\r\nStacktrace:\r\n```\r\nTypeError: Invalid non-string/buffer chunk\r\n    at validChunk (_stream_writable.js:178:14)\r\n    at Gzip.Writable.write (_stream_writable.js:205:12)\r\n    at Gzip.Writable.end (_stream_writable.js:433:10)\r\n    at zlibBuffer (zlib.js:197:10)\r\n    at Object.exports.gzip (zlib.js:123:10)\r\n    at CompressionPlugin.<anonymous> (<Project>/node_modules/compression-webpack-plugin/index.js:68:10)\r\n    at <Project>/node_modules/async/lib/async.js:111:13\r\n    at Array.forEach (native)\r\n    at _each (<Project>/node_modules/async/lib/async.js:32:24)\r\n    at Object.async.each (<Project>/node_modules/async/lib/async.js:110:9)\r\n    at CompressionPlugin.<anonymous> (<Project>/node_modules/compression-webpack-plugin/index.js:55:10)\r\n    at Compilation.applyPluginsAsync (<Project>/node_modules/tapable/lib/Tapable.js:71:13)\r\n    at Compilation.<anonymous> (<Project>/node_modules/webpack/lib/Compilation.js:572:10)\r\n    at Compilation.next (<Project>/node_modules/tapable/lib/Tapable.js:67:11)\r\n    at Compilation.<anonymous> (<Project>/node_modules/webpack/lib/optimize/UglifyJsPlugin.js:137:4)\r\n    at Compilation.applyPluginsAsync (<Project>/node_modules/tapable/lib/Tapable.js:71:13)\r\n    at Compilation.<anonymous> (<Project>/node_modules/webpack/lib/Compilation.js:567:9)\r\n    at Compilation.next (<Project>/node_modules/tapable/lib/Tapable.js:67:11)\r\n    at ExtractTextPlugin.<anonymous> (<Project>/node_modules/extract-text-webpack-plugin/index.js:309:4)\r\n    at Compilation.applyPluginsAsync (<Project>/node_modules/tapable/lib/Tapable.js:71:13)\r\n    at Compilation.<anonymous> (<Project>/node_modules/webpack/lib/Compilation.js:563:8)\r\n    at Compilation.next (<Project>/node_modules/tapable/lib/Tapable.js:67:11)\r\n    at ExtractTextPlugin.<anonymous> (<Project>/node_modules/extract-text-webpack-plugin/index.js:285:5)\r\n    at <Project>/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:52:16\r\n    at Object.async.forEachOf.async.eachOf (<Project>/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:236:30)\r\n    at Object.async.forEach.async.each (<Project>/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:209:22)\r\n    at ExtractTextPlugin.<anonymous> (<Project>/node_modules/extract-text-webpack-plugin/index.js:237:10)\r\n    at Compilation.applyPluginsAsync (<Project>/node_modules/tapable/lib/Tapable.js:71:13)\r\n    at Compilation.seal (<Project>/node_modules/webpack/lib/Compilation.js:525:7)\r\n    at Compiler.<anonymous> (<Project>/node_modules/webpack/lib/Compiler.js:397:15)\r\n```"},"comment":{"url":"https://api.github.com/repos/webpack/compression-webpack-plugin/issues/comments/180433377","html_url":"https://github.com/webpack/compression-webpack-plugin/issues/16#issuecomment-180433377","issue_url":"https://api.github.com/repos/webpack/compression-webpack-plugin/issues/16","id":180433377,"user":{"login":"jsg2021","id":577453,"avatar_url":"https://avatars.githubusercontent.com/u/577453?v=3","gravatar_id":"","url":"https://api.github.com/users/jsg2021","html_url":"https://github.com/jsg2021","followers_url":"https://api.github.com/users/jsg2021/followers","following_url":"https://api.github.com/users/jsg2021/following{/other_user}","gists_url":"https://api.github.com/users/jsg2021/gists{/gist_id}","starred_url":"https://api.github.com/users/jsg2021/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsg2021/subscriptions","organizations_url":"https://api.github.com/users/jsg2021/orgs","repos_url":"https://api.github.com/users/jsg2021/repos","events_url":"https://api.github.com/users/jsg2021/events{/privacy}","received_events_url":"https://api.github.com/users/jsg2021/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T16:43:57Z","updated_at":"2016-02-05T16:43:57Z","body":"@Icehunter it is kindof semvar :)\r\n\r\nhttp://semver.npmjs.com/ put in \"^0.2.0\" for \"compression-webpack-plugin\" and see that only 0.2.0 is highlighted."}}