Jonghakseo / chrome-extension-boilerplate-react-vite

Chrome Extension Boilerplate with React + Vite + Typescript
MIT License
2.26k stars 329 forks source link

 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  #536

Closed androozhang closed 2 months ago

androozhang commented 3 months ago

Describe the bug

@chrome-extension-boilerplate/hmr@0.0.1 dev /Users/droo/Desktop/github/curate-extension/packages/hmr node dist/lib/initReloadServer.js

node:events:492 throw er; // Unhandled 'error' event ^

Error: listen EADDRINUSE: address already in use :::8081 at Server.setupListenHandle [as _listen2] (node:net:1872:16) at listenInCluster (node:net:1920:12) at Server.listen (node:net:2008:7) at new WebSocketServer (/Users/droo/Desktop/github/curate-extension/node_modules/.pnpm/ws@8.17.1/node_modules/ws/lib/websocket-server.js:102:20) at initReloadServer (/Users/droo/Desktop/github/curate-extension/packages/hmr/dist/lib/initReloadServer.js:13:21) at Object. (/Users/droo/Desktop/github/curate-extension/packages/hmr/dist/lib/initReloadServer.js:36:1) at Module._compile (node:internal/modules/cjs/loader:1376:14) at Module._extensions..js (node:internal/modules/cjs/loader:1435:10) at Module.load (node:internal/modules/cjs/loader:1207:32) at Module._load (node:internal/modules/cjs/loader:1023:12) Emitted 'error' event on WebSocketServer instance at: at Server.emit (node:events:514:28) at emitErrorNT (node:net:1899:8) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'EADDRINUSE', errno: -48, syscall: 'listen', address: '::', port: 8081 }

To Reproduce Steps to reproduce the behavior:

  1. git clone
  2. pnpm i
  3. pnpm run dev
  4. See error

Expected behavior pnpm dev works correctly

Screenshots If applicable, add screenshots to help explain your problem.

Screenshot 2024-06-29 at 1 11 34 AM

Desktop (please complete the following information):

Additional context none

github-actions[bot] commented 3 months ago

Thank you for your contribution. We will check and reply to you as soon as possible.

Jonghakseo commented 3 months ago
Error: listen EADDRINUSE: address already in use :::8081

It looks like that port has already been used.

If you want to exit all processes using port 8081, run this command in your shell. :)

$ lsof -ti tcp:8081 | xargs kill -9
androozhang commented 3 months ago
image

Im getting this error where pnpm dev doesn't finish. I'm new to browser extension, but is this how it's suppose to be?

Jonghakseo commented 2 months ago

@androozhang In the dev mode, it is normal for changes in files to be detected and rebuilt using persistence, so everything is working as intended.