Closed aryzing closed 1 month ago
@aryzing Is the problem solved? I also encountered the same problem
I found the answer here: https://github.com/TypeStrong/ts-node/discussions/1450#discussioncomment-1806115
in your package . json add:
"scripts": {"test": "ts-node -r tsconfig-paths/register src/index.ts" },
src/index.ts
is just an example, so replace it with your main file
then start with npm run test
Switched to Bun
After setting up a barebones project, with a minimal tsconfig, the the aliased paths are not properly converted when running the app with ts-node. This is the exact config being used,
The error is,
The file structure is as follows,