Roots Discourse

Yarn build not creating main.css


#1

Yarn build won’t build main.css. After I run yarn build in my theme directory it build everything successfully except for the CSS file, it’s highlighted in yellow and says “styles/main.css 352 kB 0 [emitted] [big] main”


#2

Hi,

Try running ‘yarn cache clean’, that may help. Try completely removing your ‘dist’ folder, then run ‘yarn build’ again. That has helped us in the past. If that doesn’t help, try removing the ‘node_modules’ directory and run ‘yarn’ again and repeat the build process. That may help.


#3

thanks Josh! Working now!


#4

Happy to help. What worked?


#5

removing the dist folder did it for me!