-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: import_http.default.Agent is not a constructor on expo project #1582
Comments
Not sure of the cause for resolving to the node version on expo, but you can make sure to use the fetch ( |
I think metro resolves to the |
@Haroenv I tried using requester-fetch and requester-browser-xhr : import { createFetchRequester } from "@algolia/requester-fetch";
const searchClient = algoliasearch("undefined", "undefined", {
requester: createFetchRequester(),
}); But i get same error. @shortcuts I don't really understand what i need to configure on metro. |
I tried using algoliasearch with expo 51.0.39, and it worked well. It seems to be broken only on expo 52. |
I also got the same error after upgrading to Expo 52 |
I resolved the error by downgrading react-native to version 0.74.5. I think the issue is related to react-native 0.76.x. I'm not sure how to make it work with react-native 0.76.x. |
Description
I get the following error on web when importing algoliasearch client :
Client
Search
Environment
Minimal reproducible example : https://github.com/LamsaLL/test-algolia
The text was updated successfully, but these errors were encountered: