From b18baa0b40d9e499a8d984c61e3d148a6603f29c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotrek=20D=C4=85browski?= Date: Tue, 15 Jan 2019 16:44:59 +0100 Subject: [PATCH] Fix module resolution for yarn linked components --- packages/react-scripts/config/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index a5f147ce0ef..4c41c615baf 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -258,7 +258,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: [path.resolve('node_modules'), 'node_modules'].concat( // It is guaranteed to exist because we tweak it in `env.js` process.env.NODE_PATH.split(path.delimiter).filter(Boolean) ),