You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[WSL 2] File watchers like create-react-app, gulp or sass doesn't work #4224
I am also facing the exact same issue. So let's say I am using WSL 2 with Ubuntu 20.04 LTS with Sass installed over nodejs. So, when I am doing the following:
> cd /mnt/d/some-folder/
> sass assets/scss/example.scss:assets/css/example.css --watch --style compressed
It says that watching file, but making changes to the file doesn't invoke the SASS compilation.
I had to go back to WSL 1 in order for it to work. Is this a WSL bug? Am I missing something here?
@daviidesnow Thanks a lot for letting me know. I've moved back my Linux install to WSL 1 as it seems WSL 2 is still not ready for our use-case. Maybe will be fixed in a couple of months or so or maybe never. Who knows? Thanks a lot for pointing to the correct issue.
I got around this by just keeping my project on the native filesystem. I use Windows Terminal and open two tabs. One is ZSH on Ubuntu and this is where I do my tmux/vim stuff. The other is a powershell tab where I add dependencies, run the project, use git commandline, etc.
It's definitely not perfect, but it allows me to feel mostly at home on windows for now.
Activity
therealkenc commentedon Jun 23, 2019
No repro was offered which would allow a definitive answer; but guessing, no, you are probably not missing something ref #4169.
canselcik commentedon Jun 24, 2019
Related to #4064 (comment) for sure.
therealkenc commentedon Oct 10, 2019
#4064#4739 as LZdjasuncion commentedon Apr 8, 2020
same problem here...
isaumya commentedon Jun 17, 2020
I am also facing the exact same issue. So let's say I am using WSL 2 with Ubuntu 20.04 LTS with Sass installed over nodejs. So, when I am doing the following:
It says that watching file, but making changes to the file doesn't invoke the SASS compilation.
I had to go back to WSL 1 in order for it to work. Is this a WSL bug? Am I missing something here?
DavidKahnt commentedon Jun 25, 2020
Saumya Majumder (@isaumya) It is currently not working in WSL2. There is still an open issue #4739 .
isaumya commentedon Jun 25, 2020
@daviidesnow Thanks a lot for letting me know. I've moved back my Linux install to WSL 1 as it seems WSL 2 is still not ready for our use-case. Maybe will be fixed in a couple of months or so or maybe never. Who knows? Thanks a lot for pointing to the correct issue.
TasinAhmed commentedon Jul 13, 2020
@daviidesnow Thank you. I was disappointed about this. Guess I'll use WSL1 for now :/
tytrdev commentedon Aug 26, 2020
I got around this by just keeping my project on the native filesystem. I use Windows Terminal and open two tabs. One is ZSH on Ubuntu and this is where I do my tmux/vim stuff. The other is a powershell tab where I add dependencies, run the project, use git commandline, etc.
It's definitely not perfect, but it allows me to feel mostly at home on windows for now.