Currently, I am using PhpStorm for a Vue 2 / TypeScript project. However, whenever I attempt to add return types to functions, I encounter the error message "Types are not supported by current JavaScript version":
https://i.sstatic.net/ct3gu.png
In the "Preferences > Languages and Frameworks > JavaScript" section, I have selected ECMAScript 6+
:
https://i.sstatic.net/ZhGl1.png
I have attempted restarting the IDE but the issue persists.
Any suggestions on how to resolve this?