I am running the latest stable branch of emacs with the latest eglot from stable.

The following fixed the issue for me.

(add-to-list 'eglot-server-programs
             `(((js-mode :language-id "javascript")
                (js-ts-mode :language-id "javascript")
                (tsx-ts-mode  :language-id "typescriptreact")
                typescript-ts-mode typescript-mode)
               .
               ("typescript-language-server" "--stdio")))