Skip to content

Commit fbd8edb

Browse files
Fix react-scripts peer-deps link local issue (facebook#6579)
1 parent ff19e0a commit fbd8edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/config/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ module.exports = function(webpackEnv) {
258258
// We placed these paths second because we want `node_modules` to "win"
259259
// if there are any conflicts. This matches Node resolution mechanism.
260260
// https://github.com/facebook/create-react-app/issues/253
261-
modules: ['node_modules'].concat(
261+
modules: ['node_modules', paths.appNodeModules].concat(
262262
// It is guaranteed to exist because we tweak it in `env.js`
263263
process.env.NODE_PATH.split(path.delimiter).filter(Boolean)
264264
),

0 commit comments

Comments
 (0)