'how to solve error "Parsing error: Expression expected.eslint"

I have a piece of code in react app with ts like below:

<p>{currentSong?.name}</p>

An error "Parsing error: Expression expected.eslint" reported here at currentSong. I don't know how this happened and how can I fix the error?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source