Skip to content

Build errors are not printed to console due to broken require #2936

Closed
@svicalifornia

Description

@svicalifornia

Is this a bug report?

Yes

Can you also reproduce the problem with npm 4.x?

Yes.

The Problem

Build errors do not print to console to due to an fatal error introduced in PR #2650.

PR #2650 added a new file printBuildError.js, which requires lodash/get. However, lodash is not listed as a dependency in react-script's package.json, so any execution path that requires printBuildError.js will fail to require 'lodash/get', causing node to throw a fatal exception.

Proposed Resolution

'lodash' or 'lodash.get' should be added to package.json, or the 'lodash/get' require should be removed from printBuildError.js.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions