You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Describe the bug
Hello there, I have a bug in a very exotic setup.
I'm running a nest application in vite with vite-plugin-node. Everything works fine for my needs, except debugging.
Let's consider the file accounts.controller.ts, with a breakpoint on line 11:
When transpiled to TypeScript, the corresponding line is line 22:
However,
ssrLoadModule
produces a slightly different virtual file:As you can see here, the breakpoint triggers on line 22 (in fact 23) and not on the right line.
Might be related to #5834.
I tried patching vite-plugin-node/server/index.ts with the following line without success.
Reproduction
https://git.inpt.fr/inp-net/bonfire/-/tree/vite-issue/
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: