Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
This repository was archived by the owner on May 30, 2024. It is now read-only.

Unable to compile with Webpack. #143

Description

@aceofpack

When I tested LD in a dummy repo it ran perfectly fine. I've now included it in our product but webpack will not compile it with many package errors - for example:

ERROR in ../node_modules/ldclient-node/file_data_source.js
Module not found: Error: Can't resolve 'fs' in '/Users/me/Repos/fluidly-web/node_modules/ldclient-node'

There are some ideas how to sort this here:

webpack/webpack#744

Specifically:

The proper course is the ask the module author to make the module browser compatible. The author can add `browser: { fs: false, child_process: false }` to the `package.json` to tell webpack that it's ok for the module to get an empty object for these modules.

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

      Issue actions