-
-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Error loading external tsconfig files from extends
in typescript 5.3.2
#976
Comments
Yes, this is a ts-node shortcoming. It will be fixed by switching to tsimp, which uses tsc to load configs instead of doing the loading itself (and thus, supports whatever semantics tsc supports). Just ironing out some kinks with the thundering-herd problem in sock-daemon (which currently works, but getting such things passing tests in CI with full coverage is proving a bit challenging, slowed down by holidays and other personal stuff; it's close tho). In the meantime, I recommend using the
|
I didn't know about that plugin, thanks for the tip and the hard work on tap, enjoy the holidays 👍 |
This particular bug should be fixed in ts-node v11.0.0-beta.1 |
I updated my ts-node to v11.0.0-beta.1 and I am still getting the error. Reverting back to 5.2.x fixes the issue. |
@dannyb |
Apparently this problem has been fixed in ts-node 10.9.2 |
see hint related to other issue: tapjs/tapjs#976 (comment) ``` npx tap plugin add @tapjs/tsx npx tap plugin rm @tapjs/typescript ```
- per: tapjs/tapjs#976 (comment) install @tapjs/tsx plugin to resolve issue with node v20
Hi, @isaacs. I'm facing a similar problem and I'm stuck. I remember having a hard time in the past as well to migrate to the new tap version with TypeScript. Since then, my tests have been passing both locally and in CI. Today I got a dependabot PR bumping TypeScript from 5.2.2 to 5.4.2, and my tests don't run anymore either locally or in CI. Doing some research, I arrived here (I actually remember this issue from last time), try your suggestion below:
This makes the tests pass locally but they still fail in CI, with the following error message:
Do you have any pointers? This is my tap configuration in
Thanks. |
@dani-mp Or problem may be that even you switched to As for me, I'm waiting for the tsimp integration |
hey, @piotr-cz. |
I was facing the problem where when I was running TAP was not identifying my modules. This fixed the error. Thanks |
I was running into a similar problem, but slightly different inputs:
So thats another workaround that may or may not help folks who just want to get tap to ignore |
@isaacs I have the same issue (cannot load external
|
@isaacs FWIW, this issue persists with the latest release as well. - @tapjs/core 1.5.2
+ @tapjs/core 1.5.3
- @tapjs/test 1.4.2
+ @tapjs/test 1.4.3
- @types/node 20.12.7
+ @types/node 20.12.10
- tap 18.7.2
+ tap 18.7.3 |
@paambaati getting the same thing. Using pnpm and volta might have something to do with it. Had to manually install |
@brenc How did you do this exactly? Would you mind walking me through those steps? |
@paambaati |
Same problem here. I downgrade to |
I shifted over to testing the compiled Javascript. Had to remove |
With the latest release, I'm (EDIT: not) able to get past the error installing the devDependencies:
- @tapjs/core 1.5.4
+ @tapjs/core 2.0.0
- @tapjs/test 1.4.4
+ @tapjs/test 2.0.0
- tap 18.8.0
+ tap 19.0.0 But after that, the tests fail with the original error reporting earlier in this issue –
|
Correction, the plugin installation no longer seems to be possible –
|
I've got this working with these steps –
After making these 3 changes, your code output should look very similar to this – paambaati/codeclimate-action@ |
Note that the above changes work locally, but not in a CI environment (https://github.com/paambaati/codeclimate-action/actions/runs/9222795319/job/25374681232?pr=747) – |
The forked I just pulled in the I also changed the plugin installation strategy in tap 19 (the main breaking change) so that plugins that get auto-installed go to |
I think once ts-node 11 ships, it might actually address the issues that tap had with it, or at least it'd be worth investigating. I really don't like the experimental warnings when using |
W would not bet on ts-node 11: https://github.com/TypeStrong/ts-node/graphs/commit-activity |
@isaacs Can confirm the latest version fixes the |
Indeed. My CI is ✅ again! |
Is there an existing issue for this?
Have you read the
CONTRIBUTING
guide on posting bugs, andCODE_OF_CONDUCT
?This issue exists in the latest tap version
Description
After updating to typescript 5.3.2 when trying to run the test I get an error from ts-node saying that it could not find the external
tsconfig
file from theextends
field, this works just ok in typescript5.2.2
.I think the issue is related to
ts-node
because in some other project that usests-node
to run in development I had the same issue, replacingts-node
withtsx
solved it there.Reproduction
I've prepared two playgrounds that will display the issue:
project with typescript 5.3.2
https://stackblitz.com/edit/stackblitz-starters-xyczc3?file=package.json
project with typescript 5.2.2
https://stackblitz.com/edit/stackblitz-starters-t9xr3w?file=package.json
Environment
The text was updated successfully, but these errors were encountered: