IntelliJ incorrectly showing TypeScript nullish coalescing `??` as a syntax error

已回答

IDE shows this:

This syntax is fine, it should not be an error. TypeScript does not report an error:

0

What is the IntelliJ IDEA version? We support nullish coalescing since IntelliJ IDEA 2019.3. See https://youtrack.jetbrains.com/issue/WEB-41494 for details. 

1

Oops... before I posted here I ran "Check for Updates" and installed and restarted, and assumed I was up to date. Somehow I wasn't. It's working now, thanks!

0

请先登录再写评论。