Skip to content

@mdx-js/language-server throws at initialisation with 'TypeScript module is missing' #2427

Answered by remcohaszing
GNRSN asked this question in Q&A
Discussion options

You must be logged in to vote

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 need remark-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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GNRSN
Comment options

Answer selected by GNRSN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants