In debug window, both of typescript null check operator "?" and nullish coalescing"??" operator shows systax error

I am using Angular v9, typescript v4 and webstorm 2020.3.

My code:

selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
export class AppComponent {
constructor() {
const data1 = {name: null};
const data2 = ?? 'default';
const data3 = data1?.name ?? 'default'; // ****** break point



Comment actions Permalink

can't reproduce - tried this in a simple app transpiled on-the-fly with ts-node as well as with Angular application in WebStorm 2020.3.2:

Comment actions Permalink

The problem is Chrome. After I updated the latest version, v.88, webstorm debugger works fine.

Thank you.


Please sign in to leave a comment.