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
ERROR in ./~/css-loader?{"modules":true}!./src/main.css
Module build failed: referenced class name "text" in composes not found (4:5)
2 |
3 | .foo {
> 4 | composes: text from colors;
| ^
5 | }
6 |
when the class name you're composing with is the same as the class name you're composing from, you get error Module build failed: referenced class name "from" in composes not found
when the class name is not the same, you get error Module build failed: referenced class name "COMPOSED_CLASS_NAME" in composes not found, where COMPOSED_CLASS_NAME is the composed class name.
OliverJAsh
added a commit
to OliverJAsh/css-loader
that referenced
this issue
May 16, 2017
Do you want to request a feature or report a bug? bug
What is the current behavior?
Error when composing imported class.
If the current behavior is a bug, please provide the steps to reproduce.
webpack config:
Gives error:
Full test case at https://github.com/OliverJAsh/postcss-modules-values-test. After cloning:
What is the expected behavior?
No error.
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as your webpack version, Node.js version and Operating System.
webpack 2.5.1
css-loader 0.28.1
The text was updated successfully, but these errors were encountered: