From 2050174631287652bcfc031227a1a9615c2bb25f Mon Sep 17 00:00:00 2001 From: Aeneas Date: Fri, 23 Sep 2016 12:33:23 +0200 Subject: [PATCH] openBrowser() causes docker-compose set ups to fail because of spawn EACCESS (#711) * openBrowser() causes docker-compose set ups to fail because of spawn EACCESS - closes #710 Signed-off-by: Aeneas Rekkas (arekkas) * Ignore errors --- packages/react-scripts/scripts/start.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/react-scripts/scripts/start.js b/packages/react-scripts/scripts/start.js index 1916316945..e14b390e7e 100644 --- a/packages/react-scripts/scripts/start.js +++ b/packages/react-scripts/scripts/start.js @@ -170,7 +170,11 @@ function openBrowser(port, protocol) { } // Fallback to opn // (It will always open new tab) - opn(protocol + '://localhost:' + port + '/'); + try { + opn(protocol + '://localhost:' + port + '/'); + } catch (err) { + // Ignore errors. + } } // We need to provide a custom onError function for httpProxyMiddleware.