From 3e073ed160bd318af82ba4d17b3622a81f4b4b64 Mon Sep 17 00:00:00 2001 From: Yuval Greenfield Date: Tue, 22 Aug 2017 21:33:03 -0700 Subject: [PATCH 1/2] Disable service workers until issues fixed https://github.com/facebookincubator/create-react-app/issues/2398#issuecomment-324199845 --- packages/react-scripts/template/src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-scripts/template/src/index.js b/packages/react-scripts/template/src/index.js index fae3e3500cf..dcf1f0ebd20 100644 --- a/packages/react-scripts/template/src/index.js +++ b/packages/react-scripts/template/src/index.js @@ -5,4 +5,5 @@ import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(, document.getElementById('root')); -registerServiceWorker(); +// Consider enabling service workers for caching and offline pages by uncommenting the following line +//registerServiceWorker(); From 630cf1e14c0cee0f20e9e83fbf3cd070fa08fa26 Mon Sep 17 00:00:00 2001 From: Yuval Greenfield Date: Sun, 27 Aug 2017 01:29:01 -0500 Subject: [PATCH 2/2] Avoid build issue with unused variable --- packages/react-scripts/template/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/template/src/index.js b/packages/react-scripts/template/src/index.js index dcf1f0ebd20..f0476eeab2f 100644 --- a/packages/react-scripts/template/src/index.js +++ b/packages/react-scripts/template/src/index.js @@ -2,7 +2,7 @@ import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; -import registerServiceWorker from './registerServiceWorker'; +//import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(, document.getElementById('root')); // Consider enabling service workers for caching and offline pages by uncommenting the following line