react-native-community / directory

A searchable and filterable directory of React Native libraries.

Home Page:https://reactnative.directory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elasticsearch Node.js client incompatible with expo - react native?

colinwilliams90 opened this issue · comments

Trying to use Elasticsearch in an expo - react native application and getting the below error installing and running the Node.js client.

The package at "node_modules/@elastic/elasticsearch/index.js" attempted to import the Node standard library module "url". It failed because the native React runtime does not include the Node standard library. Read more at https://docs.expo.io/workflow/using-libraries/#using-third-party-libraries

The expo link suggests to post the issue here to determine compatibility. Does this mean I will need to eject from expo to use elastic search or (fingers crossed) is there something I'm overlooking?

I've tried resetting the cache it doesn't work.

The elastic App search client seems to work fine however app search has limited functionality to meet my use case. Algolia is too expensive.