From 7bb97c791faacd531bc50a44aa0df2ddbff14ac3 Mon Sep 17 00:00:00 2001 From: edoo Date: Wed, 20 Feb 2019 09:50:42 +0000 Subject: [PATCH] Update to latest babel and react To fix babel7 and babel preset problem causing app unable to compile --- examples/upload-file-via-browser/package.json | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/examples/upload-file-via-browser/package.json b/examples/upload-file-via-browser/package.json index 24130b384..988b7458f 100644 --- a/examples/upload-file-via-browser/package.json +++ b/examples/upload-file-via-browser/package.json @@ -11,13 +11,15 @@ ], "license": "MIT", "devDependencies": { - "babel-core": "~6.26.3", - "babel-loader": "~8.0.4", + "@babel/core": "^7.2.2", + "@babel/preset-env": "^7.3.1", + "@babel/preset-react": "^7.0.0", + "babel-loader": "^8.0.5", "ipfs-http-client": "../../", "pull-file-reader": "~1.0.2", - "react": "~16.6.3", - "react-dom": "~16.6.3", - "react-hot-loader": "~4.3.12", + "react": "^16.8.2", + "react-dom": "^16.8.2", + "react-hot-loader": "^4.7.1", "webpack": "~4.25.1", "webpack-dev-server": "~3.1.10" }