# Yarn build not creating main.css

**URL:** https://discourse.roots.io/t/yarn-build-not-creating-main-css/14457
**Category:** sage
**Tags:** webpack
**Created:** 2018-12-29T23:11:46Z
**Posts:** 6

## Post 1 by @andrewsiagz — 2018-12-29T23:11:46Z

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”

 ![20%20PM](https://discourse.roots.io/uploads/default/original/2X/5/5d35f4f4a4391f44a8f722bd0d7c73d67da9e5fa.png) ![37%20PM](https://discourse.roots.io/uploads/default/original/2X/4/49222161b71d89318fb5e46c7717d2bf6a21d637.png)

---

## Post 2 by @joshb — 2018-12-31T18:22:51Z

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.

---

## Post 3 by @andrewsiagz — 2019-01-01T02:51:16Z

thanks Josh! Working now!

---

## Post 4 by @joshb — 2019-01-01T09:02:52Z

Happy to help. What worked?

---

## Post 5 by @andrewsiagz — 2019-01-02T18:30:30Z

removing the dist folder did it for me!

---

## Post 6 by @josepedrodiaz — 2021-02-28T18:21:20Z

‘yarn cache clean’ works for me, thankyou
