-
-
Notifications
You must be signed in to change notification settings - Fork 188
Bug with nesting #389
Comments
I think the notation you used is incorrect, per spec. Poke @jonathantneal |
oh, but why playground works as me expected? |
Yes, that notation is incorrect. It is using Sassy combinations, which might be best to transpile using a non-spec plugin like postcss-nested. See csstools/postcss-nesting#17 for further information and commentary from the spec author. |
Also, some plugins in the cssnext wasnt updated to v6. It causes the problem. |
@jonathantneal Thanks for your answer! And if we with @sc0rp10 use wrong notation, why your own Playground works as we expected? I updated postcss-nesting manually, but it didn't help |
I ran into the same issue and thought it was caused by @sc0rp10 if you've updated I put together a small demo repo, mentioned in the postcss-loader issue I linked to, if that helps anyone. It seems we should be tracking #374 for a fix for this. |
This bug shows up from time to time even if not using sassy combinations.
This outputs to:
So as you can see it's both jumbled (as others have described as well), and also not compiling correctly. Setup:
|
It's happening to me too. I updated Then both I managed to fix this issue with the following packages and postcss setup: "postcss-apply": "^0.8.0",
"postcss-cli": "^4.1.0",
"postcss-cssnext": "2.9.0",
"postcss-import": "^10.0.0",
"postcss-loader": "^2.0.6",
"postcss-nesting": "^4.0.1", const path = require('path');
module.exports = {
loader: 'postcss-loader',
options: {
plugins: () => [
require('postcss-import')({
path: [path.resolve(__dirname, '../../src/css')],
}),
require('postcss-apply')(),
require('postcss-cssnext')(),
require('postcss-nesting')(),
],
},
}; |
I have this issue:
compile with gulp-postcss & postcss-cssnext:
It can only compile the first & block. Btw, it's ok with playground. |
Hopefully update of deps in #400 will fix this. |
@MoOx I updated to the new v3 and this still an issue with the nested class it was added as CSS properties. I had to downgrade to v2.11.0 to make it run again. |
Example of #389 (comment) in playground of v3 is not having the bug. Feel free to reopen an issue with a proper detailed example and config. |
@MoOx I'm having when using something merge class names meaning:
I'm using Webpack with the biolarplate from Vuejs and the output was:
|
per spec, it's incorrect and not supported by cssnext and postcss-nesting. Use postcss-nested for this unofficial css notation. |
@MoOx Then is my bad, sorry for the misunderstanding. Cheers |
Hi, I found strange bug that I cannot reproduce in playground.
I have following
foo.css
:And next
gulpfile.js
:package.json
:I expect:
But I found:
What am I doing wrong?
Can you please help me with the right setup?
Thanks!
The text was updated successfully, but these errors were encountered: