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

problem with composing classes from global #46

Open
Avivhdr opened this issue Mar 11, 2018 · 1 comment
Open

problem with composing classes from global #46

Avivhdr opened this issue Mar 11, 2018 · 1 comment

Comments

@Avivhdr
Copy link

Avivhdr commented Mar 11, 2018

Do you know what's wrong with the following piece of code?
it doesn't work.

/* style.css */
:global .globalText {
  color: green;
}
/* otherStyle.css */
.text {
  composes: globalText from global;
  background-color: #777;
}

Error in compilation cussed by the "composes:..." line :

webpack: Compiling...
Error: Cannot find module "./otherStyle.css"

But when i comment out that line it compiles without any errors.

@NareshVadlamani
Copy link

i too got similar kind of error ...while using composes

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

2 participants