algolia / algolia/algoliasearch-client-javascript

[bug]: import_http.default.Agent is not a constructor on expo project

Open
#1,582 11 comments 0 reactions 0 assignees View on GitHub
bug external
Dominant language
TypeScript
Stars
1.4k
Forks
226
PR merge metrics
No merged PRs in 30d

Description

### Description

I get the following error on web when importing algoliasearch client :

![Image](https://github.com/user-attachments/assets/1481a385-93fc-4c7c-8736-7ae12fc1b68b)

### Client

Search

### Environment
```
expo-env-info 1.2.2 environment info:
System:
OS: Linux 5.4 Ubuntu 20.04.6 LTS (Focal Fossa)
Shell: 5.8 - /usr/bin/zsh
Binaries:
Node: 21.1.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.3.0 - /usr/local/bin/npm
SDKs:
Android SDK:
API Levels: 29, 30, 31, 32, 33, 34
Build Tools: 29.0.2, 30.0.3, 31.0.0, 33.0.0, 33.0.1, 34.0.0, 35.0.0
System Images: android-30 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom_64, android-30 | Google Play Intel x86 Atom
npmPackages:
expo: ~52.0.37 => 52.0.37
expo-router: ~4.0.17 => 4.0.17
react: 18.3.1 => 18.3.1
react-dom: 18.3.1 => 18.3.1
react-native: 0.76.7 => 0.76.7
react-native-web: ^0.19.13 => 0.19.13
npmGlobalPackages:
eas-cli: 7.2.0
expo-cli: 6.3.10
Expo Workflow: managed
```

Minimal reproducible example : https://github.com/LamsaLL/test-algolia

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.