From eebfe1d880b797ff88dc634a72957a760520f7b9 Mon Sep 17 00:00:00 2001 From: Joey Cozza Date: Thu, 14 Mar 2019 16:44:19 -0600 Subject: [PATCH] adding react and react-dom to the webpack.config.js alias section --- packages/react-scripts/config/webpack.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index ad5a94c9519..678f249f60c 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -274,6 +274,8 @@ module.exports = function(webpackEnv) { // Support React Native Web // https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/ 'react-native': 'react-native-web', + react: require.resolve('react'), + 'react-dom': require.resolve('react-dom'), }, plugins: [ // Adds support for installing with Plug'n'Play, leading to faster installs and adding