Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #6806
Closed
Open
Issue created Apr 12, 2019 by Administrator@rootContributor

Check for port conflict before compilation in npm start

Created by: TomasHubelbauer

I'd like to suggest that CRA attempts to pre-bind the port it is configured to run on when doing npm start before compilation starts. The compilation is slow and I often forget I have a different CRA running on 3000 (I use the default) already, so it costs some time to find out only after the server attempts to start and have to kill the hog and restart the compilation.

Obviously doing this check would still leave a window where if it passes pre-compilation, the process can be bound during the compilation, but I believe the current behavior is find in that case. Checking pre-emptively before compilation should catch approximately 100.0% of cases where you forgot to kill a different process on the desired port.

Assignee
Assign to
Time tracking