-
-
Notifications
You must be signed in to change notification settings - Fork 29
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]: Using latest SWC rule, swc crash while not finding 'base_dir' #248
Comments
Some more info: Version 1.2.2 works with SWC |
Error lies between version SWC |
Probably due to this fix: |
Ok, I've found the solution: With new versions of SWC, if you specify path rewrite, you need to specify a For exemple if you have this in you .swcrc: "jsc": {
...
"paths": {
"i18next": [
"./node_modules/i18next"
]
},
...
} You have to specify: "jsc": {
...
"baseUrl": "."
...
} |
Thanks for following up and recording your findings 👍 |
What happened?
While running the latest version of SWC rules, it crashes with this error:
Version
Development (host) and target OS/architectures:
Output of
bazel --version
:bazel 7.1.1
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:rules_swc-1.2.2
rules_ts-2.2.0
rules_js-1.40.0
Language(s) and/or frameworks involved:
TS
How to reproduce
No response
Any other information?
While upgrading from
rules_swc-1.1.0
torules_swc-1.2.2
The text was updated successfully, but these errors were encountered: