jaredpalmer / jaredpalmer/backpack

Ask if server should start at next open port

Open
#98 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.4k
Forks
164
PR merge metrics
No merged PRs in 30d

Description

In addition to #86, I think it would be great, if it would open the next open port as a default, like exactly the same what `create-react-app` does. So instead of prompting

```
Error: listen EADDRINUSE :::4000
at Object._errnoException (util.js:1024:11)
at _exceptionWithHostPort (util.js:1046:20)
at Server.setupListenHandle [as _listen2] (net.js:1351:14)
at listenInCluster (net.js:1392:12)
at Server.listen (net.js:1476:7)
...
```

... we should be able to decide if we want to open at `4001` instead.

Contributor guide

Open the contributing guide

Research direction

Start by locating Backpack’s server startup and the handling of the EADDRINUSE error, then compare the requested prompt behavior with create-react-app. Done means startup offers the choice to use the next open port, such as 4001, instead of only failing on port 4000.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs, webpack
Domain
build-system, devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.