@mdx-js/language-server throws at initialisation with 'TypeScript module is missing' #2427
-
I'm trying to set up mdx_analyzer as an LSP server in Neovim but the serves crashes on initialisation Using: The error thrown, 'TypeScript module is missing', stems from this assertion From neovim's side, communication with the language server happens through the cli with I've done some sanity checkes like ensuring I have a clean npm install but to no avail. I'm confused about installation section in the readme referring to Any advice for what I may be missing in terms of configuration or on how to further debug this will be much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @GNRSN, it’s great to see someone setup the MDX language server in another editor. Admittedly, the docs need some work. The mention of The language server requires you to pass the path to the TypeScript library via initialization options. You can see how it’s done in the VSCode extension here. MDX analyzer is based on Volar, the same technology that powers editor integration for Astro and Vue. I suggest you have a look at https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/server_configurations/astro.lua and https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/server_configurations/volar.lua. |
Beta Was this translation helpful? Give feedback.
Hey @GNRSN, it’s great to see someone setup the MDX language server in another editor.
Admittedly, the docs need some work. The mention of
remark-rehype
is a copy-paste error. You don’t needremark-rehype
at all.The language server requires you to pass the path to the TypeScript library via initialization options. You can see how it’s done in the VSCode extension here. MDX analyzer is based on Volar, the same technology that powers editor integration for Astro and Vue. I suggest you have a look at https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/server_configurations/astro.lua and https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/server_configurations/v…