-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
swc starts failing in RBE after v0.5.1 #38
Comments
I think this is another case of bazelbuild/bazel#10298 |
For SWC specifically the best fix is to simply stop depending on the node.js So #57 could fix this. |
#57 still seems hard, there are some missing things in the rust CLI. Separately, the fix for RBE in rules_js is making progress today :) |
update: latest rules_js release has RBE support. I'm still working on #57 |
With the latest rules_js and USE_BAZEL_VERSION of last_green, this should be fixed since rules_js works with RBE now. #57 would still be nice, but no longer a blocker. |
Building typescript srcs using
ts_project
rule with swc transpiler fails in RBE mode since swc version0.5.1
(also tested with the latest releasev0.7.0
). Local sandbox execution is successfull.Prior to
v0.5.0
, swc RBE transpilation worked just fine with the same config.The output stack trace of the error is:
It looks like in RBE mode executors cannot resolve npm dependencies required by swc cli.
I've checked that
slash
package can be found in/var/lib/../exec/bazel-out/exec-EAxs2/bin/external/aspect_rules_swc/swc/node_modules/.aspect_rules_js
.Repro
I've created a test case repository to show all the config that makes it fail.
https://github.com/danigar/bazel-swc-lab
The text was updated successfully, but these errors were encountered: