{"action":"opened","issue":{"url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/955","repository_url":"https://api.github.com/repos/webpack-contrib/css-loader","labels_url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/955/labels{/name}","comments_url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/955/comments","events_url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/955/events","html_url":"https://github.com/webpack-contrib/css-loader/issues/955","id":452258334,"node_id":"MDU6SXNzdWU0NTIyNTgzMzQ=","number":955,"title":"ValidationError: CSS Loader Invalid Options","user":{"login":"vladeck","id":16443718,"node_id":"MDQ6VXNlcjE2NDQzNzE4","avatar_url":"https://avatars3.githubusercontent.com/u/16443718?v=4","gravatar_id":"","url":"https://api.github.com/users/vladeck","html_url":"https://github.com/vladeck","followers_url":"https://api.github.com/users/vladeck/followers","following_url":"https://api.github.com/users/vladeck/following{/other_user}","gists_url":"https://api.github.com/users/vladeck/gists{/gist_id}","starred_url":"https://api.github.com/users/vladeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladeck/subscriptions","organizations_url":"https://api.github.com/users/vladeck/orgs","repos_url":"https://api.github.com/users/vladeck/repos","events_url":"https://api.github.com/users/vladeck/events{/privacy}","received_events_url":"https://api.github.com/users/vladeck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-06-05T00:02:10Z","updated_at":"2019-06-05T00:02:10Z","closed_at":null,"author_association":"NONE","body":"- Operating System: Windows 10 x64 1903\r\n- Node Version: 10.15.3\r\n- NPM Version: 6.4.1\r\n- webpack Version: 4.32.2\r\n- css-loader Version: 2.1.1\r\n- css-modules-typescript-loader: 2.03\r\n- sass-loader: 7.1.0\r\n\r\n### Expected Behavior\r\n\r\nNo error.\r\n\r\n### Actual Behavior\r\n\r\nError:\r\n\r\n```\r\nERROR in ./***.scss\r\nModule build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):\r\nModuleBuildError: Module build failed (from ./node_modules/css-loader/dist/cjs.js):\r\nValidationError: CSS Loader Invalid Options\r\n\r\noptions.modules should be boolean\r\noptions.modules should be string\r\noptions.modules should be equal to one of the allowed values\r\noptions.modules should match some schema in anyOf\r\n\r\n    at validateOptions (E:\\Projects\\***\\node_modules\\schema-utils\\src\\validateOptions.js:32:11)\r\n    at Object.loader (E:\\Projects\\***\\node_modules\\css-loader\\dist\\index.js:44:28)\r\n    at runLoaders (E:\\Projects\\***\\node_modules\\webpack\\lib\\NormalModule.js:302:20)\r\n    at E:\\Projects\\***\\node_modules\\loader-runner\\lib\\LoaderRunner.js:367:11\r\n    at E:\\Projects\\***\\node_modules\\loader-runner\\lib\\LoaderRunner.js:233:18\r\n    at runSyncOrAsync (E:\\Projects\\***\\node_modules\\loader-runner\\lib\\LoaderRunner.js:143:3)\r\n    at iterateNormalLoaders (E:\\Projects\\***\\node_modules\\loader-runner\\lib\\LoaderRunner.js:232:2)\r\n    at iterateNormalLoaders (E:\\Projects\\***\\node_modules\\loader-runner\\lib\\LoaderRunner.js:221:10)\r\n    at E:\\Projects\\***\\node_modules\\loader-runner\\lib\\LoaderRunner.js:236:3\r\n    at context.callback (E:\\Projects\\***\\node_modules\\loader-runner\\lib\\LoaderRunner.js:111:13)\r\n    at Object.render [as callback] (E:\\Projects\\***\\node_modules\\sass-loader\\lib\\loader.js:76:9)\r\n    at Object.done [as callback] (E:\\Projects\\***\\node_modules\\neo-async\\async.js:8067:18)\r\n    at options.success (E:\\Projects\\***\\node_modules\\node-sass\\lib\\index.js:308:32)\r\n @ ./***.tsx 9:0-26\r\n @ multi ./***.tsx webpack-hot-middleware/client\r\n```\r\n\r\n### Code\r\n\r\n```js\r\nmodule: {\r\n  rules: [\r\n    // ...\r\n    {\r\n      test: /\\.scss$/,\r\n      use: [\r\n        MiniCssExtractPlugin.loader,\r\n        {loader: \"css-modules-typescript-loader\"},\r\n        {\r\n          loader: \"css-loader\",\r\n          options: {\r\n            modules: {\r\n              localIdentName: \"[name]_[local]_[hash:base64]\",\r\n            },\r\n            sourceMap: true\r\n          }\r\n        },\r\n        {loader: \"sass-loader\", options: {sourceMap: true}}\r\n      ]\r\n    },\r\n  ]\r\n},\r\n```\r\n\r\nWhen using `modules: true` there is no issue. Is this a bug or a bad configuration? I have followed documentation for `css-loader`. Please advise.\r\n"}}
{"actor":{"display_login":"vladeck"}}