Skip to content

Server hangs on startup showing "○ Compiling / ..." and does not proceed #646

Description

@EminDemiri

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions