Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97355

Why VS Code fails to debug sources with TS 3.7.1-rc syntax support?

$
0
0

I have a code base and I am willing to use typescript 3.7, to be precise I use 3.7.1-rc. I could build the source with the command line and even run tests in the command line, but when I want to debug the project using F5, it fails, vs code claims there are some errors, but it shows nothing in the Problems tab, but in the Outputs it says:

sample.ts(42,53): error TS1109: Expression expected.
sample.ts(42,68): error TS1005: ':' expected.

the source file is something like the following:

if (filterElements || configuration.classes?.filterElements) {
            const filter = filterElements || configuration.classes!.filterElements;

in which column 53 is where the question mark exists, and 68 is where the close parenthesis exists. I even tried the VS Code Insider, it behaves the same.

I have no idea what to do. I have the same error where ever I used ? of 3.7.


Viewing all articles
Browse latest Browse all 97355

Trending Articles