Closed RunOrVeith closed 5 months ago
I am having the exact same issue
You should compile your ts before running it with 0x.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
I have installed 0x using
pnpm install -g 0x
. The installed version is 5.7.0. (And I am using node v20.9.0, npx 10.1.0, pnpm 8.6.6)I am trying to profile a typescript file like this
0x -- npx tsx debug.ts
. I can run the script successfully usingnpx tsx debug.ts
.When using 0x, I get the following error:
The content of the mentioned logfile /home/veith/.npm/_logs/2024-03-12T15_21_50_704Z-debug-0.log is
What is the problem here? The file it is looking for is indeed not there. There is only
/home/veith/.local/share/pnpm/global/5/.pnpm/0x@5.7.0/node_modules/0x/lib/preload/no-cluster.js
, with contentsI added a console.log in 0x/index.js:89 where the error during logging is thrown to see the args, which seems fine:
The actual in the logging errors issues seems to be that in index.js:89, this
v8.getIsolateLog(args.workingDir, args.pid)
returns undefined and join can't deal with that.So what causes these 2 issues?
Thanks!