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
{{ message }}
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.
Currently npx appmap-agent-js -- npx ts-node main.ts does not work. This is because we use --loader which changes the default loader from esm to cjs. This is important for the entry point. Normally we always tag the first module loaded as commonjs. But when using ts-node the first module loaded is ts-node entry point. They are doing a hack to make it look like the provided argument is the entry point https://github.com/TypeStrong/ts-node/blob/fd438213ad3b3e1bcabea48627255b8be74c1c24/src/bin.ts#L643. But we are not able to detect that.
NB: ts-node-esm works fine atm.
The text was updated successfully, but these errors were encountered:
Currently
npx appmap-agent-js -- npx ts-node main.ts
does not work. This is because we use--loader
which changes the default loader fromesm
tocjs
. This is important for the entry point. Normally we always tag the first module loaded ascommonjs
. But when usingts-node
the first module loaded ists-node
entry point. They are doing a hack to make it look like the provided argument is the entry point https://github.com/TypeStrong/ts-node/blob/fd438213ad3b3e1bcabea48627255b8be74c1c24/src/bin.ts#L643. But we are not able to detect that.NB:
ts-node-esm
works fine atm.The text was updated successfully, but these errors were encountered: