Skip to content

node module fs is not supported in client environments #62

Open
@floydnoel

Description

@floydnoel

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @floydnoel

        Issue actions

          node module `fs` is not supported in client environments · Issue #62 · graphql-compose/graphql-compose-elasticsearch