You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 28, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 28, 2026. It is now read-only.
TypeError [ERR_INVALID_ARG_TYPE]: The "from" argument must be of type string. Received type undefined #906
Module build failed: TypeError [ERR_INVALID_ARG_TYPE]: The "from" argument must be of type string. Received type undefined
at D:\css-loader!D:\Work\__Source\js\react-multi-select\src\components\search\search.scss:1:1
at validateString (internal/validators.js:125:11)
at Object.relative (path.js:492:5)
at getLocalIdent (D:\Work\__Source\js\react-multi-select\node_modules\css-loader\dist\utils.js:50:33)
at generateScopedName (D:\Work\__Source\js\react-multi-select\node_modules\css-loader\dist\index.js:90:16)
at exportScopedName (D:\Work\__Source\js\react-multi-select\node_modules\postcss-modules-scope\src\index.js:64:26)
at localizeNode (D:\Work\__Source\js\react-multi-select\node_modules\postcss-modules-scope\src\index.js:84:26)
at Array.map (<anonymous>)
at localizeNode (D:\Work\__Source\js\react-multi-select\node_modules\postcss-modules-scope\src\index.js:80:38)
at traverseNode (D:\Work\__Source\js\react-multi-select\node_modules\postcss-modules-scope\src\index.js:103:20)
at Array.map (<anonymous>)
at traverseNode (D:\Work\__Source\js\react-multi-select\node_modules\postcss-modules-scope\src\index.js:109:38)
at Array.map (<anonymous>)
at traverseNode (D:\Work\__Source\js\react-multi-select\node_modules\postcss-modules-scope\src\index.js:109:38)
at css.walkRules.rule (D:\Work\__Source\js\react-multi-select\node_modules\postcss-modules-scope\src\index.js:129:27)
at D:\Work\__Source\js\react-multi-select\node_modules\css-loader\node_modules\postcss\lib\container.js:239:18
at D:\Work\__Source\js\react-multi-select\node_modules\css-loader\node_modules\postcss\lib\container.js:135:18
Sorry, I'm quite unfamiliar with the implementation of these projects. I'll have a look when I get some time. Can you narrow down the potential things I have to look at?
@anonimitorafhttps://github.com/css-modules/postcss-modules-scope, i am on vacation on weekends, so i don't have time right now to investigate in reproducible repo above (not small), anyway if you find lines in your css what throw this error i can fix it, i am sure what to fix it will be very easy.
@evilebottnawi I took a quick look I don't think this is a regression in postcss-modules-scope the root cause is that the rootContext property on loaderContext is undefined, My guess is this is really a storybook version mismatch issue
@jquense I don't understand how it can be a storybook version issue unless it means a different storybook version = different webpack config. Which makes me think of maybe checking the webpack config's file history
@anonimitoraf problem what css-loader doesn't have compatibility with webpack@3 (old version of storybook uses old version of webpack and css-loader), you need update storybook to latest version. I will add check to avoid this problem, but only because code for generation locals looks ugly, you need update deps to avoid this and same problem in future, thanks
Activity
alexander-akait commentedon Mar 7, 2019
Regression in
postcsscss modules plugin, feel free to send a PR topostcss-modules-scopeanonimitoraf commentedon Mar 7, 2019
Sorry, I'm quite unfamiliar with the implementation of these projects. I'll have a look when I get some time. Can you narrow down the potential things I have to look at?
alexander-akait commentedon Mar 7, 2019
@anonimitoraf https://github.com/css-modules/postcss-modules-scope, i am on vacation on weekends, so i don't have time right now to investigate in reproducible repo above (not small), anyway if you find lines in your
csswhat throw this error i can fix it, i am sure what to fix it will be very easy.jquense commentedon Mar 7, 2019
@evilebottnawi I took a quick look I don't think this is a regression in
postcss-modules-scopethe root cause is that therootContextproperty on loaderContext isundefined, My guess is this is really a storybook version mismatch issueanonimitoraf commentedon Mar 8, 2019
@evilebottnawi That error message gets repeated multiple times for multiple files. One of the files (referenced by the error message I posted) is https://github.com/anonimitoraf/react-multi-select/blob/master/src/components/search/search.scss
@jquense I don't understand how it can be a storybook version issue unless it means a different storybook version = different webpack config. Which makes me think of maybe checking the webpack config's file history
alexander-akait commentedon Mar 11, 2019
@anonimitoraf hm, very strange, i will look on this in near future
alexander-akait commentedon Mar 11, 2019
@anonimitoraf problem what
css-loaderdoesn't have compatibility withwebpack@3(old version ofstorybookuses old version ofwebpackandcss-loader), you need updatestorybookto latest version. I will add check to avoid this problem, but only because code for generation locals looks ugly, you need update deps to avoid this and same problem in future, thanks