In debug window, both of typescript null check operator "?" and nullish coalescing"??" operator shows systax error Follow
I am using Angular v9, typescript v4 and webstorm 2020.3.
My code:
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
constructor() {
const data1 = {name: null};
const data2 = data1.name ?? 'default';
const data3 = data1?.name ?? 'default'; // ****** break point
}
}
Please sign in to leave a comment.
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:
The problem is Chrome. After I updated the latest version, v.88, webstorm debugger works fine.
Thank you.