{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/1470","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/1470/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/1470/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/1470/events","html_url":"https://github.com/webpack/webpack/issues/1470","id":108025136,"number":1470,"title":"\"Cannot resolve module\" for CSS files","user":{"login":"joezimjs","id":1313898,"avatar_url":"https://avatars.githubusercontent.com/u/1313898?v=3","gravatar_id":"","url":"https://api.github.com/users/joezimjs","html_url":"https://github.com/joezimjs","followers_url":"https://api.github.com/users/joezimjs/followers","following_url":"https://api.github.com/users/joezimjs/following{/other_user}","gists_url":"https://api.github.com/users/joezimjs/gists{/gist_id}","starred_url":"https://api.github.com/users/joezimjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joezimjs/subscriptions","organizations_url":"https://api.github.com/users/joezimjs/orgs","repos_url":"https://api.github.com/users/joezimjs/repos","events_url":"https://api.github.com/users/joezimjs/events{/privacy}","received_events_url":"https://api.github.com/users/joezimjs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-23T23:07:30Z","updated_at":"2016-05-18T10:13:03Z","closed_at":"2015-09-24T05:41:12Z","body":"When I try to require CSS files, I get an error:\r\n\r\n> ERROR in ./src/client/scripts/display-test.js\r\n> Module not found: Error: Cannot resolve module 'style' in C:\\Users\\u659408\\localhost\\bp\\src\\client\\scripts\r\n> @ ./src/client/scripts/display-test.js 3:12-60\r\n\r\nIt's pointed to the correct file. I can tell because when I try to point it to a file that doesn't exist, it gives a different error:\r\n\r\n> ERROR in ./src/client/scripts/display-test.js\r\n> Module not found: Error: Cannot resolve 'file' or 'directory' ../../styles/components/heading.css in C:\\Users\\u659408\\localhost\\bp\\src\\client\\scripts\r\n> @ ./src/client/scripts/display-test.js 3:12-58\r\n\r\nI'm using gulp-webpack, so that *might* be the difference, but I don't see why it would be for this error. The config being passed into it is super simple:\r\n\r\n```js\r\n{\r\n  module: {\r\n    loaders: [\r\n      { test: /\\.css$/, loader: 'style!css' },\r\n      { test: /\\.jsx?$/, loader: 'babel?stage=0', exclude: /node_modules/ },\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\nI tried using the normal `require` instead of ES2015 `import`. Nothing. I tried a whole ton of things and couldn't find an answer. If you have any ideas, let me know. One of these days I'll try without gulp-webpack, but that'll be a little bit."},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/219984016","html_url":"https://github.com/webpack/webpack/issues/1470#issuecomment-219984016","issue_url":"https://api.github.com/repos/webpack/webpack/issues/1470","id":219984016,"user":{"login":"msangel","id":773163,"avatar_url":"https://avatars.githubusercontent.com/u/773163?v=3","gravatar_id":"","url":"https://api.github.com/users/msangel","html_url":"https://github.com/msangel","followers_url":"https://api.github.com/users/msangel/followers","following_url":"https://api.github.com/users/msangel/following{/other_user}","gists_url":"https://api.github.com/users/msangel/gists{/gist_id}","starred_url":"https://api.github.com/users/msangel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msangel/subscriptions","organizations_url":"https://api.github.com/users/msangel/orgs","repos_url":"https://api.github.com/users/msangel/repos","events_url":"https://api.github.com/users/msangel/events{/privacy}","received_events_url":"https://api.github.com/users/msangel/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T10:13:03Z","updated_at":"2016-05-18T10:13:03Z","body":"`npm install --save-dev style-loader` and `npm install --save-dev css-loader` make it working for me. looks like these modules are no longer a part of standard bundle. "}}