Error after Yarn run build

Hi all i am getting a error when i run yarn run build

resources/assets/styles/common/_global.scss
2:7 × Expected single space before “{” block-opening-brace-space-before

Error: Failed because of a stylelint error.

So add a space before “{” in resources/assets/styles/common/_global.scss on Line 2.

Hope this helps!

2 Likes

It would be great if you could check + open an issue on https://github.com/roots/sage.

1 Like

This actually seems more like an issue understanding stylelint than an actual Sage problem. I can relate. Recently I decided to “quickly” update a Sage 9 theme to the lastest Github version and ended up spending 3 hours re-doing the spacing in my stylesheets.

Worth it! But tedious.

2 Likes
stylelint resources/assets/styles/**/*.scss --fix
3 Likes

does it go in the .styelintrc file?

5 Likes

Where does this line go?

It’s a command to run in your theme root.

For anyone reading this later, you have to install stylelint globally before running that command.