Results 3 comments of Jay Hsu

> Try `node --loader=ts-node/esm file.js` I use `ts-node-esm file.ts` CustomError: Cannot find package XXX imported from file.ts

> Same issue here, even with `--loader ts-node/esm`. > > Tried: > > ``` > $ yarn exec ts-node-esm "$script" > Error [ERR_MODULE_NOT_FOUND]: Cannot find package '/xxx/.yarn/__virtual__/ts-node-virtual-xxx/0/cache/xxx/ts-node-npm-10.9.1-xxx.zip/node_modules/ts-node/child-loader.mjs' imported from $script...