Closed j3ski closed 1 year ago
I see this resolved in the latest Nx. Can you please retry with the latest version?
In fact, I also see it resolved in 13.8.3
. :thinking:
If you do not see this resolved, can you please provide a repo so we can reproduce the issue?
Hi @FrozenPandaz
No, this is not resolved in the latest Nx. I am able to reproduce it with 13.8.8
. Here is a repo: https://github.com/j3ski/nx-react-swc
I'm having the same issue too. And from what I can see in the swc
thread
https://github.com/swc-project/swc/issues/657
It seems like a missing feature so I thought the missed types in NX are expected.
Not a big issue for compiling and bundling apps, but for libs that mean to be published to NPM, this is an essential feature.
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐
Ping. Still relevant.
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐
Still relevant
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐
This issue still exists
Still relevant. Had to change compiler to babel
in project.json
to fix it.
I also ran into this issue. Having to switch back to babel and lose my SWC performance improvements
@FrozenPandaz would you consider removing the blocked tag that you added to this? This issue is still present in the latest version
Same experience here with swc vs babel.
Thanks for re-opening, @FrozenPandaz. What needs to be done to remove the blocked tag? Other people above have posted repros
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐
Still relevant.
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐
Still relevant.
Still relevant
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐
Still relevant.
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐
Does anyone know what and where something needs to be addressed? Is it a swc issue?
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐
Still relevant
Still relevant
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐
Still relevant
because of this line, when we use swc, tsc is not running, so no d.t.s files
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐
This is still relevant
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐
This is still relevant
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐
This is still relevant
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐
Still relevant
still relevant
Based on the comment by @Chanki-Min, I've created a custom version of the rollup executor that includes the missing useSwc
check:
Just add these 4 files into a folder in your mono-repo, e.g. ./executors/rollup
:
https://gist.github.com/ShayDavidson/e89751a5bc57a17ca6846dfd68aabf45
And then in the project.json
, reference it like this:
"build": {
"executor": "./executors/rollup:rollup",
...
}
It does generate the type declarations, but I'm not sure if there are other bad side-effects of this (will update this comment if I find any).
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐
active
this is still relevant
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐
How it can be close, it is still relevant. without giving and reply and resulations, this thread closed multiple times. Dear team please provide the valid fix for this. bcs of this issue, me and my team are not able to directly use the nx, and in this case need to use babel instead of swc with webpack instead of NX !!!!
Seems like nx contributers has busy days. I'm gonna make PR for this (in weekends?)
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐
Can this be solved? It still happens in the latest 15.x and 16.x
this issue fixed by https://github.com/nrwl/nx/pull/18342
cc @YonatanKra
Can we close this issue @jaysoo ?
Seems like this closed by #18342
Current Behavior
When running
nx build
for my buildable library I don't getd.ts
files in the output directory.Expected Behavior
d.ts
files should be generated.Steps to Reproduce
--compiler swc
Environment