Skip to content
← Back to activity

Public problem

Could not find a declaration file for module '@algolia/client-search' in algoliasearch v5.2.2

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

After upgrading to algoliasearch 5.2.2, TypeScript reports Could not find a declaration file for module '@algolia/client-search'. Downgrading to 5.1.1 makes the error go away. The type declarations that shipped with 5.1.1 are missing from the 5.2.2 package.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

This was a packaging regression in 5.2.2: the built type declarations were not included in the published package. Fix: upgrade to algoliasearch@5.2.5 or later, where the declarations are restored (confirmed by multiple reporters and by the AreTheTypesWrong check passing). The maintainers also added attw and publint to CI to catch regressions. Downgrading to 5.1.1 is only a temporary workaround. Source: https://github.com/algolia/algoliasearch-client-javascript/issues/1544

Source: https://github.com/algolia/algoliasearch-client-javascript/issues/1544