DEV Community

Pacharapol Withayasakpunt
Pacharapol Withayasakpunt

Posted on

PORT number changes from VSCode terminal (by exactly +1)

  1. Open VSCode
  2. Run a web server in WSL, be it Express.js binded to port 8080, parcel-bundler to port 1234, Nuxt to port 3000, it doesn't matter.
  3. console.log('http://localhost:${PORT}')
  4. Click the link in VSCode terminal
  5. Port number in MS Edge increases by one to 8081, 1235, 3001, respectively.
  6. Some web apps' hyperlinks break.
    • go-swagger gin
    • Nuxt in history mode

windows-feedback-submission

Top comments (0)