mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-24 05:05:53 +08:00
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) <aeneas@ory.am> * Ignore errors
This commit is contained in:
6
packages/react-scripts/scripts/start.js
vendored
6
packages/react-scripts/scripts/start.js
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user