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.
CSS Modules: error when composing imported class #533
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.
Activity
OliverJAsh commentedon May 16, 2017
After more digging:
Module build failed: referenced class name "from" in composes not foundModule build failed: referenced class name "COMPOSED_CLASS_NAME" in composes not found, whereCOMPOSED_CLASS_NAMEis the composed class name.Fix CSS Modules plugin order
Fix CSS Modules plugin order