I implemented Clinic.js in Node JS. But I don't know how to implement clinic.js in Nest JS Framework. I explore it how to implement clinic.js to Nest JS. But I couldn't get any answer can you please tell me.
Asked
Active
Viewed 2,235 times
2 Answers
2
nest start
will transpile TS files into JS then run JS code. Thats why this is not working with clinicJS. You should find a dist
folder, with good JS files.
using yarn build
to transpiling your TS file to JS, then use clinic docker -- node dist/main
. it using nodejs run endpoint file (main.ts).

Thomas Decaux
- 21,738
- 2
- 113
- 124

si-hyeon-ee
- 41
- 4
-1
I know nothing about Clinic.js, but from taking a quick look through their docs, it looks like you can just do clinic doctor -- nest start --watch
and it should pick up on the running server

Jay McDoniel
- 57,339
- 7
- 135
- 147
-
I run this command it's throwing an error. this command where to i config in nest js. can you please tell me. Error Clinic.js must be called with a `node` command line: `clinic doctor -- node script.js` – Hariprasath Vengatachalam Apr 12 '21 at 05:14
-
Can you please suggest any other profiling tool and provide some implementation documentation using in nest js. I tried to explorer how to implement profiling in nest js it but I could not get it because I am new in this framework – Hariprasath Vengatachalam Apr 12 '21 at 05:17