Closed
Description
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.