On Node v20.12 or greater running listhen in watch mode causes a Segmentation fault on Linux.
- install Node
v20.12
or greater - run
pnpm run dev
(runslisthen ./src/server.ts --watch
) - You should get the following error
> [email protected] dev /home/joshmossas/Documents/modii/open-source/listhen-watch-tests
> listhen ./src/server.ts --watch
➜ Local: http://localhost:3000/
➜ Network: use --host to expose
🚀 Loading server entry ./src/server.ts listhen 1:59:14 PM
✅ Server initialized in 22ms listhen 1:59:14 PM
Segmentation fault (core dumped)
ELIFECYCLE Command failed with exit code 139.
If you run pnpm run serve
the error does not occur (This runs listhen without the watch flag)