Crashing when launching Chrome debugger
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 185
- PR merge metrics
- No merged PRs in 30d
Description
I have a Haul project, and am able to turn on debugging such that Haul launches Chrome and lets me debug. This is great.
If instead I run my project in a [VScode devcontainer](https://code.visualstudio.com/docs/remote/containers), Chrome isn't available. Haul tries to launch Chrome, fails, and crashes:
```
error ▶︎ Error: spawn google-chrome ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:77:11) {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn google-chrome',
path: 'google-chrome',
spawnargs: [ 'http://mymachine:8081/debugger-ui' ]}
```
Looking at [launchBrowser.ts](https://github.com/callstack/haul/blob/0747fd41b94603900c8759511ca18f7c9e2e03ee/packages/haul-core/src/server/launchBrowser.ts), it seems like it should print the URL to navigate to manually, which would be great. But maybe that code path isn't being triggered.
Contributor guide
Assessment
This issue has not been assessed yet.