Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
joonashak opened this issue Nov 12, 2023 · 1 comment

Comments

@joonashak
Copy link

joonashak commented Nov 12, 2023

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:

  • "typedoc": "^0.25.3"
  • "typedoc-plugin-markdown": "^3.17.1"
  • "vuepress": "^2.0.0-beta.68"
  • "vuepress-plugin-typedoc": "^0.13.0"
@tgreyuk
Copy link
Member

tgreyuk commented May 3, 2024

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

@tgreyuk tgreyuk closed this as completed May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants