nuxt-modules / algolia

🔎 Algolia module for Nuxt
https://algolia.nuxtjs.org/
MIT License
193 stars 35 forks source link

TypeScript bundle module resolution NOT exposing correct types #205

Open Archetipo95 opened 2 months ago

Archetipo95 commented 2 months ago

Version

@nuxtjs/algolia: latest nuxt: 3.13.0

Reproduction Link

Dont have it

Steps to reproduce

What is Expected?

Typecheck not to throw errors

What is actually happening?

Typecheck error thrown from AlgoliaDocSearch

../../node_modules/.pnpm/@nuxtjs+algolia@1.10.2_@vue+server-renderer@3.4.38_vue@3.4.38_typescript@5.5.4___magicast@0.3_gmv53hnb7zexxkglosjulg7kzy/node_modules/@nuxtjs/algolia/dist/runtime/components/AlgoliaDocSearch.vue:10:60
error TS2307: Cannot find module '@docsearch/react' or its corresponding type declarations.

The issue might be that the version of @docsearch/react used in the module did not expose correct types for TypeScript bundle module resolution, as suggested by @danielroe in https://github.com/nuxt/nuxt/issues/28672#issuecomment-2307129335

Baroshem commented 1 month ago

Thanks for reporting this issue! Would you be interested in doing some discovery and providing a fix if it is about the version of docsearch? :)