Cmd + click not working to jump to function definition in Cursor

I encountered the same issue while working with TypeScript. However, after installing these two extensions (JavaScript and TypeScript Nightly and TypeScript Hero)and restarting Cursor, the problem was resolved.
I hope this solution works for you as well!