-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
Composes does not work with css-loader/locals #537
Comments
I'm not sure if this is related but composes from another file seem not to be resolved. .wrapper {
composes: grid from './foo.less';
}
.nav {
composes: wrapper;
/* footer nav element */
}
.socialNav {
/* footer social nav element */
}
.brandNav {
/* footer brand nav element */
} // exports
exports.locals = {
"wrapper": "e9oiFTlAUxvsYfN3AXVAS " + require("-!../../../../../../../node_modules/css-loader/index.js?{\"modules\":true,\"sourceMap\":true}!./foo.less").locals["grid"] + "",
"nav": "bUQCLkB65igesOUztxpHc e9oiFTlAUxvsYfN3AXVAS " + require("-!../../../../../../../node_modules/css-loader/index.js?{\"modules\":true,\"sourceMap\":true}!./foo.less").locals["grid"] + "",
"socialNav": "_2q5ZQPrp57ZlshW3-oXSG-",
"brandNav": "_36BcBteQRXzJN_Cv-6lehZ"
}; |
@DylanPiercey @pixelass problem still exists? If yes can you create minimum reproducible test repo? |
@evilebottnawi I don't use this mechanism anymore. I think I figured it out somehow and AFAIR it was a problem in my implementation. |
Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks! |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Currently when you use
composes: x from './y.css'
using thecss-loader/locals
plugin for server side rendering it creates a circular dependency no matter what.If the current behavior is a bug, please provide the steps to reproduce.
Loader config:
What is the expected behavior?
That only a circular dependency would error. (Note there is no error displayed any required module just will not resolve).
Please mention other relevant information such as your webpack version, Node.js version and Operating System.
webpack v2x, node 7, macOS
The text was updated successfully, but these errors were encountered: