We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba34b0b commit 6e4e0aeCopy full SHA for 6e4e0ae
1 file changed
packages/react-scripts/scripts/start.js
@@ -170,7 +170,11 @@ function openBrowser(port, protocol) {
170
}
171
// Fallback to opn
172
// (It will always open new tab)
173
- opn(protocol + '://localhost:' + port + '/');
+ try {
174
+ opn(protocol + '://localhost:' + port + '/');
175
+ } catch (err) {
176
+ console.log('Unable to automatically open ' +protocol + '://localhost:' + port + '/ because ', err)
177
+ }
178
179
180
// We need to provide a custom onError function for httpProxyMiddleware.
0 commit comments