With algoliasearch 5.4.3 and React Native 0.73.6, the Metro bundler fails with Unable to resolve module http from node_modules/@algolia/requester-node-http/src/createHttpRequester.ts because that module imports Node's http, https, and url builtins. The same project worked with algoliasearch 4.23.3. Metro cannot resolve Node builtins, so any import chain reaching the Node requester breaks the bundle.
React Native: Unable to resolve module http from @algolia/requester-node-http (algoliasearch v5)
Algoliasearch v5 bundled the Node HTTP requester in a way that resolved to @algolia/requester-node-http on React Native, which imports the Node http builtin that Metro cannot resolve. The maintainers fixed the requester selection and released the fix in 5.5.1. Upgrade to algoliasearch@5.5.1 or later and clean the ios, android, and node_modules folders so the stale resolver entries are gone; the reporter confirmed it then works. (A duplicate report #1547 was closed as a duplicate of this one.) Source: https://github.com/algolia/algoliasearch-client-javascript/issues/1554
Source: https://github.com/algolia/algoliasearch-client-javascript/issues/1554