Yarn build not creating main.css

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”


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.


thanks Josh! Working now!

1 Like

Happy to help. What worked?

removing the dist folder did it for me!

1 Like

‘yarn cache clean’ works for me, thankyou

1 Like