ts-node
ts-node copied to clipboard
TypeScript execution and REPL for node.js
### Search Terms ### Expected Behavior ### Actual Behavior Cannot find dependent packages while using `ts-node-esm` with `yarn berry` under `pnp mode`. I'm not sure if it should be an...
### Search Terms `pnpm` `ERR_PNPM_PREPARE_PACKAGE` `prepack` `TS2742` `macroReplNoErrorsAndStdoutContains` `macroReplStderrContains` `@cspotcode/ava-lib` ### Expected Behavior install `github:TypeStrong/ts-node#main` as a dependency successfully. ### Actual Behavior install `github:TypeStrong/ts-node#main` as a dependency failed. ```ts ...1816_0fa4b34047b2a870b11744b3f7556d5f...
Inconsistent behaviour with `moduleResolution: "node16"` and `swc: true` for CommonJS module output
_I decided to file this issue here after looking at both the `swc` and `ts-node` issues - apologies if this is a better fit for `swc`! I'm also fully expecting...
### Search Terms We use https://www.typescriptlang.org/tsconfig#moduleSuffixes for react-native project. Adding this config option causes `ts-node` to break, is there a way to avoid this? ### Expected Behavior ts-node should not...
As of node v20, loader hooks are executed in a separate isolated thread environment. As a result, they are unable to register the `require.extensions` hooks in a way that would...
In the past, node's built-in `--enable-source-maps` had bugs / missing features and performance issues. But things may have changed. In #2009 @isaacs found that `@cspotcode/source-map-support` is not working in node...
### Search Terms ERR_UNKNOWN_FILE_EXTENSION Unknown file extension ".ts" I've tried re-installing ts-node over and over again, both globally and in scope of my project. No matter what I do, I...
### Search Terms - https://github.com/TypeStrong/ts-node/issues/935 ### Expected Behavior print '???' in terminal ### Actual Behavior ### Steps to reproduce the problem 1. `pnpm i` 2. `pnpm start` ### Minimal reproduction...
``` C:\Users\me\Desktop\test\node_modules\ts-node\dist-raw\node-internal-modules-esm-resolve.js:757 throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base)); ^ CustomError: Cannot find package '@/stuff' imported from C:\Users\me\Desktop\test\src\index.ts at packageResolve (C:\Users\me\Desktop\test\node_modules\ts-node\dist-raw\node-internal-modules-esm-resolve.js:757:9) at moduleResolve (C:\Users\me\Desktop\test\node_modules\ts-node\dist-raw\node-internal-modules-esm-resolve.js:798:18) at Object.defaultResolve (C:\Users\me\Desktop\test\node_modules\ts-node\dist-raw\node-internal-modules-esm-resolve.js:912:11) at C:\Users\me\Desktop\test\node_modules\ts-node\src\esm.ts:218:35 at entrypointFallback (C:\Users\me\Desktop\test\node_modules\ts-node\src\esm.ts:168:34) at...
### Search Terms - node-ts and tsconfig paths - tsconfig paths what I found: - https://github.com/TypeStrong/ts-node/issues/1948 - https://stackoverflow.com/questions/72549407/how-to-use-tsconfig-paths-with-ts-node - https://typestrong.org/ts-node/docs/imports ### Expected Behavior Take tsconfig.json paths into account even in...