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.

Question / Possible Bug :: Plugins not working with TSC --build

See original GitHub issue

Hello, first off thanks for this really awesome project, I’m really looking forward to using it.

At present I’m wondering if it’s possible to use plugins when using tsc --build /path/to/tsconfig? I’ve added some log statements to the transformers I have installed, but I’ve had no luck with them running inside of build mode. Perhaps there’s something I’m missing?

Thanks for your time.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
TylorScommented, Sep 16, 2020

In fact I am using TS4 for the variadic tuple support. I subscribed to the issue there and I’ll look at replacing the plugin when it’s been sorted.

0reactions
nonaracommented, Sep 16, 2020

No problem. Glad to hear it’s worked out!

BTW, in case you run into any issues with @zerollup/ts-transform-paths, you might try typescript-transform-paths. I used to use the zerollup package but I encountered a lot of issues, so I ended up switching to typescript-transform-paths. There were a few issues in that as well, so I re-wrote the library to rely entirely on the TS API for resolution. AFAIK, it should be the most stable option which is also tied directly to TS behaviour.

There’s an open issue for TS4, however, which needs to be addressed, so if you’re using TS4, you may want to wait for that to be fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why are these tsconfig paths not working? - Stack Overflow
Make sure the path provided is correct. It will throw error "module and its decrations not found".
Read more >
tsc should not care and fail with ts files outside of rootDir #9858
I do this so that I can set my document root to the build folder and keep my src out of the doc...
Read more >
Typescript — How to solve the problem with unresolved path ...
js file containing the line with the path alias. The actual cause of the issue is that the tsc compiler does not transpiles...
Read more >
TypeScript Compiling with Visual Studio Code
A problem matcher parses build output based on the specific build tool and provides integrated issue display and navigation. VS Code ships with...
Read more >
Troubleshooting Node.js Deploys - Heroku Dev Center
Check the buildpack · Compare Node and npm Versions · Make sure the lockfile is up to date · Don't check in generated...
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