wxt-dev / wxt

⚡ Next-gen Web Extension Framework
https://wxt.dev
MIT License
3.24k stars 118 forks source link

Error ECONNREFUSED is thrown on a clean project #766

Closed pastukhvladyslav closed 15 hours ago

pastukhvladyslav commented 1 week ago

Describe the bug

I have just set up a clean project with this command: pnpm dlx wxt@latest init test --template react

When I run pnpm dev I get the error after ~30sec:

✖ Command failed after 26.8 s
ERROR  connect ECONNREFUSED 127.0.0.1:39925
  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1606:16)

Reproduction

test.zip

Steps to reproduce

  1. pnpm dlx wxt@latest init test --template react
  2. pnpm dev

System Info

System:
    OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
    CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
    Memory: 5.93 GB / 15.44 GB
    Container: Yes
    Shell: 5.2.15 - /bin/bash
  Binaries:
    Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v20.13.1/bin/yarn
    npm: 10.5.2 - ~/.nvm/versions/node/v20.13.1/bin/npm
    pnpm: 9.4.0 - ~/.nvm/versions/node/v20.13.1/bin/pnpm
  Browsers:
    Chromium: 125.0.6422.60
  npmPackages:
    wxt: ^0.18.6 => 0.18.9

Used Package Manager

pnpm

Validations

aklinker1 commented 1 week ago

On discord, people have appearently solved this by restarting their computer, as ridiculous as that seems lol.

I think it must clear out a port that's causing problems? Not sure TBH.

pastukhvladyslav commented 1 week ago

The error happens to me only on Chromium on Linux. It works alright on Windows and on Firefox on Linux (when I run dev:firefox). Not yet sure what is wrong though.

aklinker1 commented 15 hours ago

Tried this out today on my ubuntu setup, working for me... If you find out what's causing it, let me know. Otherwise, there's not really anything I can do :/