typedoc2md / typedoc-plugin-markdown

A plugin for TypeDoc that enables TypeScript API documentation to be generated in Markdown.
https://typedoc-plugin-markdown.org
MIT License
691 stars 171 forks source link

TSC cannot find vuepress-plugin-typedoc/next although it is present in node_modules #500

Closed joonashak closed 2 months ago

joonashak commented 8 months ago

TSC complains Cannot find module 'vuepress-plugin-typedoc/next' or its corresponding type declarations. ts(2307) when importing vuepress-plugin-typedoc in config.ts to configure vuepress. However, the dev server works as expected and build passes. Markdown generated by the plugin appears to be correct.

The project is set up according to vuepress docs and there is nothing extra. vuepress-plugin-typedoc is installed with NPM and present in node_modules where I can also see the ./next export in package.json. I also tested with vuepress-plugin-copy-code2 and importing that in config.ts works fine.

I tried creating tsconfig.json and fiddled with some basic options but nothing seemed to work. Is it necessary to have a specific tsconfig.json (or other) when using this plugin? Any other ideas what might be causing this behavior?

Thanks!

EDIT: Versions in question:

tgreyuk commented 2 months ago

The vuepress plugin has been deprecated. Please use typedoc-vitepress-theme (https://typedoc-plugin-markdown.org/plugins/vitepress) which is VuePress compatible.