From bc6668c5e3793f5c193b3e7e121c378f5c0791e5 Mon Sep 17 00:00:00 2001 From: Ben Cooling Date: Mon, 28 Nov 2016 20:44:50 +1000 Subject: [PATCH] fixes error: unresolved react mount module during webpack compilation --- client/src/package.json | 5 ++++- client/src/webpack.config.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/client/src/package.json b/client/src/package.json index ca2922f..0a44d20 100644 --- a/client/src/package.json +++ b/client/src/package.json @@ -6,6 +6,9 @@ "build": "webpack", "start": "webpack-dev-server --hot --inline" }, + "babel": { + "plugins": ["react-hot-loader/babel"] + }, "keywords": [ "serverless", "forum", @@ -25,7 +28,7 @@ "babel-preset-react": "^6.5.0", "babel-preset-stage-0": "^6.5.0", "file-loader": "^0.8.5", - "react-hot-loader": "^1.3.0", + "react-hot-loader": "^3.0.0-beta.6", "webpack": "^1.13.0", "webpack-dev-server": "^1.14.1" }, diff --git a/client/src/webpack.config.js b/client/src/webpack.config.js index f468382..0438206 100644 --- a/client/src/webpack.config.js +++ b/client/src/webpack.config.js @@ -19,7 +19,7 @@ module.exports = { { test: /\.jsx?$/, exclude: /node_modules/, - loaders: ["react-hot", 'babel?' + JSON.stringify( + loaders: ['babel?' + JSON.stringify( { presets: ['react', 'es2015'], "plugins": [