I'm currently working on converting typescript code to JavaScript and have been following the steps outlined in the documentation.
To automate the compilation of .ts files, I set up a watch task triggered by pressing Ctrl+Shift+B
. However, upon running the task, I encountered the following error:
'C:\Program' is not recognized as an internal or external command
The issue seems to be caused by spaces in the directory name Program Files
, which requires enclosing quotes. How can I modify the build command to ensure the compiler runs with the correct path?