Encountered an error in nvim when opening a .ts file. Using mason, mason-lspconfig, and nvim-lspconfig for lsp setup. Lua language lsp is functioning properly, but facing errors with ts files as shown in the screenshot below:
https://i.stack.imgur.com/gYMpF.png
Screenshot of the lsp.log:
https://i.stack.imgur.com/A05yy.png
Config uploaded on github, repository link: https://github.com/MuraliPrasanth2/nvim-lazy-config
Seeking guidance on resolving this issue. Researched solutions suggest having package.json and tsconfig file in root folder. Created them using "npm init -y" and "tsc --init", but problem persists with same error message.