-
-
Notifications
You must be signed in to change notification settings - Fork 66
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]: typescript 5.5.2 cannot find input files with source tsconfig.json #644
Comments
Further investigation shows that the difference between a source |
My gut tells me that microsoft/TypeScript#58042 could have changed how relative paths with symlinks are resolved but I cannot find any evidence of that. I'm currently double-checking that I cannot reproduce this issue without rules_ts. |
I have double checked that when running bare typescript ( |
Specifying typescript 5.4 doesn't do that as can be shown experimentally (by setting a bogus include pattern): TS 5.4:
TS 5.5 (note the differently reported exclude pattern):
So a workaround is to override exclude manually. |
I filed this upstream: microsoft/TypeScript#59036 |
TY @alexeagle. Please LMK if there is anything I can help. For discoverability: workaroundadd |
I'll adopt that workaround to land the new version mirroring: #643 We'll see if there's progress from TS team, if not then I'll have to detect the error message and print the workaround :( |
It's so gross :( :( https://github.com/aspect-build/rules_ts/pull/646/files |
This is much improved after #720 - it should only affect users who explicitly set an |
The |
What happened?
Minimal reproducible example below.
With TS 5.5.2, sources cannot be found:
When downgrading to 5.4.5:
Version
Development (host) and target OS/architectures:
Output of
bazel --version
:Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:Language(s) and/or frameworks involved:
None
How to reproduce
MODULE.bazel from above.
BUILD.bazel:
tsconfig.json
.bazelrc
test.ts
Then run
bazel build //:test
Any other information?
The
tsconfig.json
must be a source file.If you do (and optionally delete
tsconfig.json
), the issue vanishes.ts_project( name = "test", srcs = ["test.ts"], + tsconfig = {}, )
The text was updated successfully, but these errors were encountered: