From 48970df1566481198e3733bbff390c5c392c9132 Mon Sep 17 00:00:00 2001 From: Stefano Debenedetti <44903077+demaledetti@users.noreply.github.com> Date: Mon, 26 Nov 2018 00:36:32 +0100 Subject: [PATCH] Workaround for JS error: "TypeError: h$concur is undefined". Inspired by package.json and webpack.config.js from https://github.com/concurhaskell/concur-react-starter --- package.json | 2 ++ webpack.config.js | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index b6a9f6d..5a5f000 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,8 @@ "author": "Anupam Jain", "license": "ISC", "dependencies": { + "react": "^16.1.0", + "react-dom": "^16.1.0", "react-sortable-tree": "^1.2.2" } } diff --git a/webpack.config.js b/webpack.config.js index af22dd6..e160b5c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -6,10 +6,5 @@ module.exports = { // export itself to a global var: "h$concur" libraryTarget: "var", library: "h$concur" - }, - externals: { - // Load React deps from the concur-react library - "react": "h$concur.react", - "react-dom": "h$concur.reactDom" } };