question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to configure tsc-alias to be used with ts-node? you may need to implement a register

node --experimental-modules --experimental-specifier-resolution=node -r tsc-alias/register --loader ts-node/esm ./tasks/index.ts

tsconfig-paths and module-alias don’t work with module projects. i.e if you set type: module in your package .json

minimal repo run npm run start:paths

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
justkey007commented, Apr 2, 2022

@ecker00 tsc-alias was never designed for runtime use.

1reaction
eng-dibocommented, Jan 19, 2022

tsc-alias has resolveFullPaths for module support.

that’s why I want to depend on it on both compile-time (as it) and runtime (as suggested in this issue)

Read more comments on GitHub >

github_iconTop Results From Across the Web

ts-node - npm
ts -node is a TypeScript execution engine and REPL for Node.js. It JIT transforms TypeScript into JavaScript, enabling you to directly execute ...
Read more >
How To Run TypeScript Scripts with ts-node - DigitalOcean
In this article you will learn how to run TypeScript scripts without the hassle of manually transpiling.
Read more >
Getting Started with Executing TypeScript files in ts-node
Executing TypeScript Files · 1. Create a new JavaScript file called main. · 2. Next, run the node command below to execute the...
Read more >
Configuration | ts-node - TypeStrong · GitHub
Configuration. ts-node supports a variety of options which can be specified via tsconfig.json , as CLI flags, as environment variables, or programmatically.
Read more >
How to use TypeScript with Node.js - Section.io
Using Typescript with packages · Import the package. When using Node. · Initialize Express inside Typescript. · Set the server port. · Set...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found