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

Answered

IDE shows this:

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

2 comments
Comment actions Permalink

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
Comment actions Permalink

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

Please sign in to leave a comment.