Skip to content
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

node module fs is not supported in client environments #62

Open
floydnoel opened this issue Apr 10, 2019 · 0 comments
Open

node module fs is not supported in client environments #62

floydnoel opened this issue Apr 10, 2019 · 0 comments

Comments

@floydnoel
Copy link

It would be better to import the required files from elasticsearch.js rather than utilizing the fs module to read them from disk. Client-side environments do not have access to the fs module, and all the code can be accessed with an import or require statement instead, which would allow this library to run on client and server environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant