Skip to content

Module Build fails looking for 'object-assign' in current directory #242

@BinahLinden

Description

@BinahLinden

When using webpack dev middleware with HMR the build is successful on the first build but when anything is changed and the build is re-evaluated an Error shows up that says something similar to:

Module build failed: Error: ENOENT: no such file or directory, open '/Users/someuser/projectroot/object-assign' at Error (native) Error loading /Userssomeuser/projectroot/object-assign as "object-assign" from /Users/someuser/projectroot/node_modules/babel-loader/index.js @ ./src/client/containers/Root.js 23:14-52

I am not sure if this is a babel issue, or object-assign, but babel plugins are the only thing requiring 'object-assign' in our code base and babel-loader is reporting the error.

The issue began happening today after re-installing node modules, this was not a problem before now. Also to note that there are two different projects that were previously working that are having the same issue, both reporting same error but at different entry points.

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