Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@yharaskrik
Copy link
Contributor

Current Behavior

With the new tsgo baseUrl has been completely removed, this breaks compilation of plugins using swc when calling them with nx due to swc needing the baseUrl. I patched my company workspace with this fix and it did resolve it, not sure if its the right fix or what the ramifications are so happy to discuss that more. Since baseUrl is removed in tsgo (and recommended against in general), we need to find a way to provide it to swc (potentially through an .swcrc alternatively, I tried adding that to my workspace though and it didn't do anything).

Expected Behavior

Related Issue(s)

Fixes #

@yharaskrik yharaskrik requested a review from a team as a code owner November 1, 2025 23:13
@netlify
Copy link

netlify bot commented Nov 1, 2025

👷 Deploy request for nx-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit dc1381d

@vercel
Copy link

vercel bot commented Nov 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Dec 12, 2025 2:04pm

With the new tsgo `baseUrl` has been completely removed, this breaks compilation of plugins using
swc when calling them with nx due to swc needing the baseUrl. I patched my company workspace with
this fix and it did resolve it, not sure if its the right fix or what the ramifications are so happy
to discuss that more. Since `baseUrl` is removed in tsgo (and recommended against in general), we
need to find a way to provide it to swc (potentially through an `.swcrc` alternatively, I tried
adding that to my workspace though and it didn't do anything).
@nx-cloud
Copy link
Contributor

nx-cloud bot commented Dec 12, 2025

View your CI Pipeline Execution ↗ for commit dc1381d

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 34m 25s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2m 33s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 11s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-12-12 14:50:35 UTC

@Coly010 Coly010 merged commit 11992be into nrwl:master Dec 12, 2025
15 of 16 checks passed
FrozenPandaz pushed a commit that referenced this pull request Dec 15, 2025
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

With the new tsgo `baseUrl` has been completely removed, this breaks
compilation of plugins using swc when calling them with nx due to swc
needing the baseUrl. I patched my company workspace with this fix and it
did resolve it, not sure if its the right fix or what the ramifications
are so happy to discuss that more. Since `baseUrl` is removed in tsgo
(and recommended against in general), we need to find a way to provide
it to swc (potentially through an `.swcrc` alternatively, I tried adding
that to my workspace though and it didn't do anything).

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
@github-actions
Copy link
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants