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:
请先登录再写评论。
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.
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!