Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CssSyntaxError: postcss-modules-scope referenced class name "xyz" in composes not found #290

Closed
ahmed1490 opened this issue Jun 22, 2016 · 2 comments

Comments

@ahmed1490
Copy link

Filename

@value icons: '../shared/icon.css';
@value typography: '../shared/typography.css';
@value colors: '../shared/colors.css';
@value medium as bp-medium, large as bp-large from "../shared/breakpoints.css";

.rating_star {
    composes: icon-size12 from icons;
}

error below

ERROR in ./~/css-loader?modules&importLoaders=1&localIdentName=[path]___[name]__[local]___[hash:base64:5]!./components/ArticleDetail/ArticleDetail.css
Module build failed: CssSyntaxError: postcss-modules-scope: /css-loader!/Users/aabbas/ui-wishlist/components/ArticleDetail/ArticleDetail.css:7:5: referenced class name "icon-size12" in composes not found
    at Input.error (/Users/aabbas/ui-wishlist/node_modules/postcss/lib/input.js:61:22)
    at Declaration.error (/Users/aabbas/ui-wishlist/node_modules/postcss/lib/node.js:74:38)
    at /Users/aabbas/ui-wishlist/node_modules/postcss-modules-scope/lib/index.js:125:24
    at Array.forEach (native)
    at /Users/aabbas/ui-wishlist/node_modules/postcss-modules-scope/lib/index.js:108:17
    at /Users/aabbas/ui-wishlist/node_modules/postcss/lib/container.js:100:28
    at /Users/aabbas/ui-wishlist/node_modules/postcss/lib/container.js:81:26
    at Rule.each (/Users/aabbas/ui-wishlist/node_modules/postcss/lib/container.js:68:22)
    at Rule.walk (/Users/aabbas/ui-wishlist/node_modules/postcss/lib/container.js:80:21)
    at Rule.walkDecls (/Users/aabbas/ui-wishlist/node_modules/postcss/lib/container.js:98:25)
 @ ./components/ArticleDetail/ArticleDetail.css 4:14-169 13:2-17:4 14:20-175
@ahmed1490 ahmed1490 changed the title CssSyntaxError: postcss-modules-scope referenced class name "icon-size12" in composes not found CssSyntaxError: postcss-modules-scope referenced class name "xyz" in composes not found Jun 22, 2016
@OliverJAsh
Copy link
Contributor

I think this may have been fixed by #534.

Can you try out 0.28.3 and confirm?

@alexander-akait
Copy link
Member

Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants