Skip to content

Commit 36eff97

Browse files
committed
Fix importing npm linked libraries
1 parent 6c85568 commit 36eff97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ module.exports = {
8181
// We placed these paths second because we want `node_modules` to "win"
8282
// if there are any conflicts. This matches Node resolution mechanism.
8383
// https://github.com/facebookincubator/create-react-app/issues/253
84-
modules: ['node_modules'].concat(paths.nodePaths),
84+
modules: [paths.appNodeModules].concat(paths.nodePaths),
8585
// These are the reasonable defaults supported by the Node ecosystem.
8686
// We also include JSX as a common component filename extension to support
8787
// some tools, although we do not recommend using it, see:

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module.exports = {
8686
// We placed these paths second because we want `node_modules` to "win"
8787
// if there are any conflicts. This matches Node resolution mechanism.
8888
// https://github.com/facebookincubator/create-react-app/issues/253
89-
modules: ['node_modules'].concat(paths.nodePaths),
89+
modules: [paths.appNodeModules].concat(paths.nodePaths),
9090
// These are the reasonable defaults supported by the Node ecosystem.
9191
// We also include JSX as a common component filename extension to support
9292
// some tools, although we do not recommend using it, see:

0 commit comments

Comments
 (0)