Fix react-scripts peer dependencies link local issue (#6579) (#6580)

This commit is contained in:
Travis Fischer
2019-04-15 22:59:13 -04:00
committed by Ian Sutherland
parent fdbb55022c
commit 50c1884e62

View File

@@ -268,7 +268,7 @@ module.exports = function(webpackEnv) {
// We placed these paths second because we want `node_modules` to "win"
// if there are any conflicts. This matches Node resolution mechanism.
// https://github.com/facebook/create-react-app/issues/253
modules: ['node_modules'].concat(
modules: ['node_modules', paths.appNodeModules].concat(
// It is guaranteed to exist because we tweak it in `env.js`
process.env.NODE_PATH.split(path.delimiter).filter(Boolean)
),