Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when Compiling with Web Compiler 2022+: "The system cannot find the specified path"

I have been on this problem for quite some time.

I am using Web Compiler 2022+ 1.14.11

And Visual Studio 17.8.5

For some reason suddenly the Web Compiler won't compile my scss file anymore.

Im getting the error in the Task Runner Explorer:

A:\Projekte\Privat\...\src\...\...> 
c:\users\simon müller\appdata\local\microsoft\visualstudio\17.0_899cbc51\extensions\bubxkjzz.tnk\WebCompiler.exe 
"A:/Projekte/Privat/.../src/.../.../compilerconfig.json" "wwwroot/css/app/test.scss"

Das System kann den angegebenen Pfad nicht finden.
Process terminated with code 1.

The error message is in German. I translated it to English: The system cannot find the specified path.

I have seen similar problems on the internet, and also tried many solution that all did not help.

I have tried:

  • Reinstalling Web Compiler extension
  • Clearing C:\Users\%username%\AppData\Local\Temp

I found a solution on GitHub to execute the prepare.cmd batch script in C:\Users\%username%\AppData\Local\Temp\WebCompiler1.14.11 but this folder does no contain any file.

I have also made sure that my Windows user has permission for all the folders (compilerconfig.json, localtemp, test.scss).

I have created a new scss file (test.scss) to test if it is a problem with the syntax or something. It only contains one stlye:

#test{
    background: green;
}

Anyone have a solution?

Thank you for your help.

Simon

like image 968
S Mxller Avatar asked May 09 '26 22:05

S Mxller


2 Answers

I had the exact same problem and managed to fix it.

I’m from Turkey, so my full name contains non-English characters like ı, ç, ş, ö, ü. This issue started right after I installed Windows. During setup, I signed in with my Live.com email, and Windows automatically created my Users folder using my full name. As a result, my user profile folder path ended up containing Turkish characters.

Because of that, Web Compiler was unable to resolve the file path correctly.

The way I solved it: I reinstalled Windows, but this time I chose “I don’t have internet” during setup. That allowed me to manually choose my username, and I only used standard English letters. After that, Web Compiler worked without any issues.

Hopefully, this helps someone who runs into the same problem.

like image 95
ANADOLULU Avatar answered May 12 '26 17:05

ANADOLULU


The following procedure fixed the issue :

1 open WebCompiler.exe in a resource editor (dotPeek can be used aswell) : WebCompiler.exe can be located in %UserProfile%.nuget\packages\buildwebcompiler2022\1.x.x\tools\net4.8\

2 save the following resources to files : WebCompiler.Node.node.7z WebCompiler.Node.node_modules.7z

3 extract the content of these two 7z files in the WebCompiler temporary folder example : %LocalAppData%\Temp\WebCompiler1.14.10

Solution found on GitHub by jbress

Make sure the version of the WebCompiler you have matches the folder.

If you have multiple versions, repeat the steps for each version to be extra safe.

like image 41
S Mxller Avatar answered May 12 '26 17:05

S Mxller



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!