#Debugger is hit on VS Code - but there is no visual indicator

2 messages · Page 1 of 1 (latest)

limpid nebula
#

I'm setting up my first NestJS application. It's mostly a copy of nest-vite-node-starter.

I can start the server from VS Code and can use the debugger statement, but there is no visual indicator (first screenshot).
However, I can see the visual indicator when it hits a function outside the controller, although the column is a bit wrong (second screenshot).

Does someone know how to solve it?

My .vscode/launch.json:

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Run Server",
      "type": "node-terminal",
      "sourceMaps": true,
      "request": "launch",
      "command": "yarn dev"
    }
  ]
}

On the top of the stack trace for the first debugger it says that the line is 32, but there are only 21 lines in the file

AppController.getRandom (/workspace/figma/anima-public-api/src/app.controller.ts:32)
GitHub

Nest.JS via vite example. Contribute to unlight/nest-vite-node-starter development by creating an account on GitHub.

limpid nebula
#

Fixed the issue. I needed to remove tsCompiler: "swc" from vite config