{"action":"created","issue":{"url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/617","repository_url":"https://api.github.com/repos/webpack-contrib/css-loader","labels_url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/617/labels{/name}","comments_url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/617/comments","events_url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/617/events","html_url":"https://github.com/webpack-contrib/css-loader/issues/617","id":261616895,"number":617,"title":"Module build failed: Syntax Error (5:1) Unknown word","user":{"login":"yinshipeng","id":9604512,"avatar_url":"https://avatars1.githubusercontent.com/u/9604512?v=4","gravatar_id":"","url":"https://api.github.com/users/yinshipeng","html_url":"https://github.com/yinshipeng","followers_url":"https://api.github.com/users/yinshipeng/followers","following_url":"https://api.github.com/users/yinshipeng/following{/other_user}","gists_url":"https://api.github.com/users/yinshipeng/gists{/gist_id}","starred_url":"https://api.github.com/users/yinshipeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yinshipeng/subscriptions","organizations_url":"https://api.github.com/users/yinshipeng/orgs","repos_url":"https://api.github.com/users/yinshipeng/repos","events_url":"https://api.github.com/users/yinshipeng/events{/privacy}","received_events_url":"https://api.github.com/users/yinshipeng/received_events","type":"User","site_admin":false},"labels":[{"id":595332638,"url":"https://api.github.com/repos/webpack-contrib/css-loader/labels/flag:%20Needs%20more%20info","name":"flag: Needs more info","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-09-29T11:50:07Z","updated_at":"2017-11-03T22:04:58Z","closed_at":null,"author_association":"NONE","body":"ERROR in ./~/css-loader!./~/sass-loader/lib/loader.js!./~/postcss-loader/lib!./~/extract-text-webpack-plugin/loader.js?{\"omit\":1,\"remove\":true}!./~/vue-style-loader!./~/css-loader?{\"minimize\":true,\"sourceMap\":true}!./src/assets/css/index.css\r\nModule build failed: Syntax Error \r\n\r\n(5:1) Unknown word\r\n\r\n  3 | // load the styles\r\n  4 | var content = require(\"!!../../../node_modules/css-loader/index.js?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!./index.css\");\r\n> 5 | if(typeof content === 'string') content = [[module.id, content, '']];\r\n    | ^\r\n  6 | if(content.locals) module.exports = content.locals;\r\n  7 | // add the styles to the DOM\r\n\r\n @ ./src/assets/css/index.css 4:14-348\r\n @ ./src/main.js\r\n"},"comment":{"url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/comments/341838745","html_url":"https://github.com/webpack-contrib/css-loader/issues/617#issuecomment-341838745","issue_url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/617","id":341838745,"user":{"login":"Dygerati","id":444632,"avatar_url":"https://avatars3.githubusercontent.com/u/444632?v=4","gravatar_id":"","url":"https://api.github.com/users/Dygerati","html_url":"https://github.com/Dygerati","followers_url":"https://api.github.com/users/Dygerati/followers","following_url":"https://api.github.com/users/Dygerati/following{/other_user}","gists_url":"https://api.github.com/users/Dygerati/gists{/gist_id}","starred_url":"https://api.github.com/users/Dygerati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dygerati/subscriptions","organizations_url":"https://api.github.com/users/Dygerati/orgs","repos_url":"https://api.github.com/users/Dygerati/repos","events_url":"https://api.github.com/users/Dygerati/events{/privacy}","received_events_url":"https://api.github.com/users/Dygerati/received_events","type":"User","site_admin":false},"created_at":"2017-11-03T22:04:58Z","updated_at":"2017-11-03T22:04:58Z","author_association":"NONE","body":"Same issue here, tried a few different config's to no avail. \r\n\r\nConsole output:\r\n```ERROR in ./node_modules/css-loader!./web-root/style.css\r\nModule build failed: Unknown word (5:1)\r\n\r\n  3 | // load the styles\r\n  4 | var content = require(\"!!../node_modules/css-loader/index.js!./style.css\");\r\n> 5 | if(typeof content === 'string') content = [[module.id, content, '']];\r\n    | ^\r\n  6 | // Prepare cssTransformation\r\n  7 | var transform;\r\n  8 | \r\n\r\n @ ./scripts/index.js 13:0-43\r\n```\r\n\r\nwebpack.config.js\r\n```\r\nconst path = require('path');\r\n\r\nmodule.exports = {\r\n   entry: './scripts/index.js',\r\n   output: {\r\n      filename: 'code.js',\r\n      path: path.resolve(__dirname, 'static')\r\n   },\r\n   devServer: {\r\n      contentBase: './static'\r\n   },\r\n   module: {\r\n      rules: [\r\n         {\r\n            test: /\\.css$/,\r\n            use: [ 'style-loader', 'css-loader' ]\r\n         },\r\n         {\r\n            test: /\\.js$/,\r\n            exclude: /(node_modules|bower_components)/,\r\n            use: {\r\n               loader: 'babel-loader',\r\n               options: {\r\n                  presets: [ '@babel/preset-env', '@babel/preset-react' ]\r\n               }\r\n            }\r\n         }\r\n      ]\r\n   }\r\n};\r\n```\r\nAnd the include:\r\n```\r\nimport 'css-loader!../web-root/style.css';\r\n```\r\n\r\nIn package.json:\r\n```\r\n  \"devDependencies\": {\r\n    \"@babel/core\": \"^7.0.0-beta.5\",\r\n    \"@babel/preset-env\": \"^7.0.0-beta.5\",\r\n    \"@babel/preset-react\": \"^7.0.0-beta.4\",\r\n    \"babel-loader\": \"8.0.0-beta.0\",\r\n    \"css-loader\": \"^0.28.7\",\r\n    \"style-loader\": \"^0.19.0\",\r\n    \"eslint-plugin-react\": \"^7.4.0\",\r\n    \"webpack\": \"^3.8.1\",\r\n    \"webpack-dev-server\": \"^2.9.4\"\r\n  }\r\n```"}}
{"actor":{"display_login":"Dygerati"}}