{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/2643","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/2643/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/2643/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/2643/events","html_url":"https://github.com/webpack/webpack/issues/2643","id":160123919,"number":2643,"title":"Webpack replacing require.extensions with (void 0)","user":{"login":"Itagiba","id":6554881,"avatar_url":"https://avatars.githubusercontent.com/u/6554881?v=3","gravatar_id":"","url":"https://api.github.com/users/Itagiba","html_url":"https://github.com/Itagiba","followers_url":"https://api.github.com/users/Itagiba/followers","following_url":"https://api.github.com/users/Itagiba/following{/other_user}","gists_url":"https://api.github.com/users/Itagiba/gists{/gist_id}","starred_url":"https://api.github.com/users/Itagiba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Itagiba/subscriptions","organizations_url":"https://api.github.com/users/Itagiba/orgs","repos_url":"https://api.github.com/users/Itagiba/repos","events_url":"https://api.github.com/users/Itagiba/events{/privacy}","received_events_url":"https://api.github.com/users/Itagiba/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webpack/webpack/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-14T08:25:18Z","updated_at":"2016-06-15T22:24:26Z","closed_at":null,"body":"I am using [ignore-styles](https://github.com/bkonkle/ignore-styles) So that babel-register handles sass/css files without trying to process them as .js. I am using [material-ui](http://www.material-ui.com/#/) and more specially the drawer menu. However when I build my project with webpack I get the following error:\r\n\r\n`ignore-styles.js:45 Uncaught TypeError: Cannot read property '.css' of undefined`\r\n\r\n\r\nAnd the Drawer does not work.\r\n\r\nThis is what it is pointing to in ignore-styles.js (45):\r\n\r\n\r\n```\r\n    oldHandlers[ext] = (void 0)[ext];\r\n    (void 0)[ext] = handler;\r\n  }\r\n```\r\n\r\nThe code should be:\r\n\r\n```\r\n oldHandlers[ext] = require.extensions[ext]\r\n    require.extensions[ext] = handler\r\n```\r\n\r\nAs indicated by the author of ignore-styles and it seems webpack is replacing require.extensions with (void 0).\r\n\r\nI Installed this loader for webpack:\r\n\r\n    { test: /\\.css$/,\r\n      loader: 'ignore-loader'\r\n    },\r\n\r\n\r\nThen for my scss:\r\n\r\n    // Extract SCSS\r\n    { test: /\\.scss$/,\r\n      loader: ExtractTextPlugin.extract(\"style-loader\", \"css-loader!sass-loader\", 'ignore-loader')\r\n    },\r\nBut it is making no difference whatsoever. I have tried using other drawer menus and get the same error. Why is webpack doing this?"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/226338117","html_url":"https://github.com/webpack/webpack/issues/2643#issuecomment-226338117","issue_url":"https://api.github.com/repos/webpack/webpack/issues/2643","id":226338117,"user":{"login":"sokra","id":1365881,"avatar_url":"https://avatars.githubusercontent.com/u/1365881?v=3","gravatar_id":"","url":"https://api.github.com/users/sokra","html_url":"https://github.com/sokra","followers_url":"https://api.github.com/users/sokra/followers","following_url":"https://api.github.com/users/sokra/following{/other_user}","gists_url":"https://api.github.com/users/sokra/gists{/gist_id}","starred_url":"https://api.github.com/users/sokra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokra/subscriptions","organizations_url":"https://api.github.com/users/sokra/orgs","repos_url":"https://api.github.com/users/sokra/repos","events_url":"https://api.github.com/users/sokra/events{/privacy}","received_events_url":"https://api.github.com/users/sokra/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T22:24:26Z","updated_at":"2016-06-15T22:24:26Z","body":"webpack doesn't support `require.extensions` (there is an error emitted too). Modules relying on it are probably not webpack/browser-compatible."}}
{"actor":{"display_login":"sokra"}}