David R
David R

Reputation: 15639

Typescript - Error while compiling a .ts file in visual studio code

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?.

Upvotes: 0

Views: 649

Answers (1)

nandos
nandos

Reputation: 1207

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

Upvotes: 1

Related Questions