Description
Sometimes when I start the server using npm run dev, the terminal shows:
> Server listening at http://localhost:3000
○ Compiling / ...
but then it just stays stuck on this message and never proceeds further. When I open http://localhost:3000 in the browser, nothing happens, and the server does not respond.
Full terminal output
> npm run dev
> rl-agent@0.1.0 dev
> nodemon
[nodemon] 3.1.10
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): src/**/*.ts
[nodemon] watching extensions: js,ts
[nodemon] starting `nodemon --exec tsx src/index.ts`
[nodemon] 3.1.10
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): src/**/*.ts
[nodemon] watching extensions: js,ts
[nodemon] starting `tsx src/index.ts`
> Server listening at http://localhost:3000
○ Compiling / ...
package.json scripts
{
"scripts": {
"generate": "tsx src/generate.ts datasource",
"generate:datasource": "tsx src/generate.ts datasource",
"generate:ui": "tsx src/generate.ts ui",
"dev": "nodemon",
"start": "tsx src/index.ts"
}
}
Dependencies
- nodemon 3.1.10
- tsx 4.7.2
- typescript 5.3.2
- @LlamaIndex packages as per package.json
Additional info
- Happens intermittently and without clear reason.
- No error messages or stack traces are printed.
- Server just hangs at compiling step indefinitely.
Could you please help identify what might cause this and how to fix it?
Thanks!
Description
Sometimes when I start the server using
npm run dev, the terminal shows:but then it just stays stuck on this message and never proceeds further. When I open
http://localhost:3000in the browser, nothing happens, and the server does not respond.Full terminal output
package.json scripts
{ "scripts": { "generate": "tsx src/generate.ts datasource", "generate:datasource": "tsx src/generate.ts datasource", "generate:ui": "tsx src/generate.ts ui", "dev": "nodemon", "start": "tsx src/index.ts" } }Dependencies
Additional info
Could you please help identify what might cause this and how to fix it?
Thanks!