0

I'm getting the below error, while I try to compile a .ts file from the Visual Studio Code IDE. (Using Ctrl+Shift+B)

Problem matcher {0} can't be resolved. The matcher will be ignoredThe filename, directory name, or volume label syntax is incorrect.

Here is my tasks.json,

{
    "version": "0.1.0",
    "command": "tsc",
    "isShellCommand": true,
    "showOutput": "always"
}

Can someone help me what could be the issue here?.

1 Answer 1

1

It looks like you have not configured a task runner for transpiling Typescript.

On VS Code, Ctrl+Shift+P and type "Configure Task Runner", press Enter to select it. Select "Typescript.json" from the options.

Save all and it should work.

The complete reference on configuring Typescript can be found here: https://code.visualstudio.com/docs/languages/typescript

Sign up to request clarification or add additional context in comments.

2 Comments

The tasks.json created by following the steps I described above contain more keys that the one you showed on your question.
{ // See go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "0.1.0", "command": "tsc", "isShellCommand": true, "args": ["-p", "."], "showOutput": "silent", "problemMatcher": "$tsc" }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.