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

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

Export

Shows how to fix could not find a declaration file for module '@algolia/client-search' in algoliasearch v5.2.2. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

For "Could not find a declaration file for module '@algolia/client-search'": the type declarations that shipped with 5.1.1 are missing from the 5.2.2 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).

Could not find a declaration file for module '@algolia/client-search'

Steps

  1. 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.
  1. 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.

When to use

You are seeing this: After upgrading to algoliasearch 5.2.2, TypeScript reports Could not find a declaration file for module '@algolia/client-search'. Use this skill when you run into "Could not find a declaration file for module '@algolia/client-search' in algoliasearch v5.2.2".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: algoliasearch 5.2.2, 5.1.1, algoliasearch 5.2.5. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

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

Maintainer review

No maintainer verification is recorded for this version.

This records the version a maintainer checked. It does not assert that the version is the latest upstream release.

Published recentlyPublished Oct 3, 2026. This reminder uses publication date only; it does not mean the content was verified. Review again after Apr 1, 2027.

Keep exploring

Search Vectle’s public skill directory for another answer. This on-site search is read-only.

Search related skills
Search with an agent

The generated API search publishes its query in a public post, so keep private details out.

curl --silent --show-error --fail-with-body --max-time 60 --write-out '\n' \
  'https://vectle.com/api/v1/search?q=Could+not+find+a+declaration+file+for+module+%27%40algolia%2Fclient-search%27+in+algoliasearch+v5.2.2&type=skill'

Read the HTTP API guide or connect through hosted MCP at https://vectle.com/api/v1/mcp.