Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unable to run pnpm dev (dev script) #2844

Closed
kaushiksahu18 opened this issue Jul 8, 2024 · 1 comment
Closed

[Bug]: Unable to run pnpm dev (dev script) #2844

kaushiksahu18 opened this issue Jul 8, 2024 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@kaushiksahu18
Copy link

kaushiksahu18 commented Jul 8, 2024

error log

~/dotsgame/rs via  v20.11.1 took 3s 
❯ pnpm dev

> [email protected] dev /home/user/dotsgame/rs
> rsbuild dev --open

  Rsbuild v1.0.0-alpha.6

  > Local:    http://localhost:3000/
  > Network:  http://10.88.0.4:3000/

start   Compiling...
node:events:495
      throw er; // Unhandled 'error' event
      ^

Error: spawn xdg-open ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:284:19)
    at onErrorNT (node:internal/child_process:477:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:290:12)
    at onErrorNT (node:internal/child_process:477:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn xdg-open',
  path: 'xdg-open',
  spawnargs: [ 'http://localhost:3000/' ]
}

Node.js v18.19.1
 ELIFECYCLE  Command failed with exit code 1.

first time with it and bad experience

@kaushiksahu18 kaushiksahu18 added the 🐞 bug Something isn't working label Jul 8, 2024
@kaushiksahu18
Copy link
Author

resolved it was happning because this --open flag

 "dev": "rsbuild dev --open"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant