Platform: emacs 29.3 from backports debian package (1:29.3+1-3~bpo12+1)
debian 12.5 "bookworm" (current stable) on amd64
The 'M-x treesit-install-language-grammar RET typescript RET' fails
with:
⛔ Warning (treesit): Error encountered when installing language
grammar: (file-missing Setting current directory No such file or
directory /tmp/treesit-workdirN2u4XF/repo/src)
I used defaults on all questions because I had no idea what else to put
there.
I think the reason the command fails is that the repository
https://github.com/tree-sitter/tree-sitter-typescript
actually contains two tree-sitter parsers for typescript and tsx:
https://github.com/tree-sitter/tree-sitter-typescript/tree/master/typescript
https://github.com/tree-sitter/tree-sitter-typescript/tree/master/tsx