-
Notifications
You must be signed in to change notification settings - Fork 94
fix: tsc_wrapped depends on @npm//tsickle #398
Conversation
The error from circleci was:
The only source of error I can think of for now is that When running on my own machines, it worked. Though, my setup was very different from that of the CI's/ Help needed. Thanks a lot in advance. |
Hmm, this is tricky because the tsickle npm package is an optional dependency - you only need it when targeting closure compiler, otherwise we don't want to require it to be on disk. Could you include a repro? I tried a couple things and don't get the same error. |
Per 'want to avoid storing tsickle to disk': I would totally agree with both the conclusion and the reasoning so long as the resolution of this issue permits. Alright, my setup. It might be daunting and I cannot easily share the code. I can but describe the procedure it took me to get the the state. Basically, I copied the this repo. But the versions of (possibly relevant) dependencies are as follows:
Note that the In my setup, the WORKSPACE file in all these Bazel repos are stripped to only containing the OK, this setup is already hard to reproduce (a lot of work). But if you succeed, you should be able to try out a (slightly modified version of) the I googled 'tsickle bazel tsc_wrapped' and found this issue. Indeed, this PR simply takes the demonstrated work from that issue. I believe it has something to do with how the Last, I am happy with not being able to merge this PR with the hope that in the future someone else is going to provide a lightweight repro so that it becomes feasible for you to debug. If not, I am happy to just leave these information here to make it easy for others to search relevant info. |
One more data point: I was able to fix this issue in my setup with this PR - tested with a 20k+ lines project. |
okay this is blocked on a change in rules_nodejs to support a new |
Thanks @alexeagle for the deep dive and the repro! I believe I learned a good amount of information to be happy with the situation. Thanks for the patience and work. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
With Bazel 0.22, the current
tsc_wrapped
target, when used to compilets_library
targets that need to yield es5/es6 files, causes runtime errors such asIssue Number: N/A
What is the new behavior?
The
ts_library()
rule works fine for all of its outputs.Does this PR introduce a breaking change?
Other information