-
-
Notifications
You must be signed in to change notification settings - Fork 65
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]: Source generated by conflicting actions when importing js into ts #707
Comments
Thanks for the good repro. I think this is fixed in the latest rules_ts release though, mainly just as a side-effect of adding |
Yes, 3.2.0 seems to fix it. Worth adding a test case for this if there isn't one already? I'll also check to see if any other combinations of ts and js can break it. |
If you can contribute a test case that failed previously that would be great. I don't think any were added when fixed but maybe you can verify that? |
My test case now passes with the new version, but a subsequent dependency fails
|
I guess maybe I need to eliminate |
Err no, when I delete |
Updated repro case here: https://github.com/aptenodytes-forsteri/ts_js_interop/blob/main/src/BUILD.bazel |
Can you try adding test cases to rules_ts to reproduce it? |
|
If I remove emit_declaration_only = True, I get the conflict error again. |
What happened?
When importing js into ts while also transpiling with swc, rules_ts produces an error.
Repro case here: https://github.com/aptenodytes-forsteri/ts_js_interop
Version
Development (host) and target OS/architectures:
Ubuntu 22.04
Output of
bazel --version
:bazel 7.3.2
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:Language(s) and/or frameworks involved:
js / ts
How to reproduce
Clone https://github.com/aptenodytes-forsteri/ts_js_interop/tree/main bazel build //... More generally, attempt to import javascript into typescript. We have some code that has not been converted to typescript. We had successfully been importing this javascript into our typescript. Now, we get errors about conflicting source files.
Any other information?
No response
The text was updated successfully, but these errors were encountered: