Sass --watch detects changes but does not compile CSS

So, I read Sass watch detects changes, but does not compile css and many other places, but nothing helps me. When the .css file is first created, it returns that it did "front-page.css", etc. It all works until you keep making updates, and it just says "Change detected to: ...", but doesn't update the .css file. Any idea on why this is happening? Thanks!

From terminal:

sass --watch scss/front-page.scss:front-page.css >>> Sass is watching for changes. Press Ctrl-C to stop. [Listen warning]: Listen will be polling for changes. Learn more at "..." >>> Change detected to: scss/front-page.scss write front-page.css write front-page.css.map >>> Change detected to: scss/front-page.scss >>> Change detected to: scss/front-page.scss 

Thus, it creates a file, it detects changes, but does not update the CSS file.

+5
source share
2 answers

Something seems to be corrupted in the SCSS cache, which prevents SCSS from compiling the output correctly.

This issue is resolved by deleting the .sass-cache directory in the folder in which you execute the command.

0
source

This is my first contribution! lol. I guess this is in the terminal. Make sure you use sass in the folder you want to work with. Then you write the command sass --watch front-page.scss: front-page.css remove the "scss"

-3
source

All Articles