web:rollup executor doesn't produce declarations with compiler set to swc
Current Behavior
When running nx build for my buildable library I don't get d.ts files in the output directory.
Expected Behavior
d.ts files should be generated.
Steps to Reproduce
- Generate a buildable library with
--compiler swc - Build it
Environment
Node : 16.10.0
OS : darwin arm64
yarn : 1.22.17
nx : 13.8.3
@nrwl/angular : undefined
@nrwl/cli : 13.8.3
@nrwl/cypress : 13.8.3
@nrwl/detox : undefined
@nrwl/devkit : 13.8.3
@nrwl/eslint-plugin-nx : 13.8.3
@nrwl/express : undefined
@nrwl/jest : 13.8.3
@nrwl/js : 13.8.3
@nrwl/linter : 13.8.3
@nrwl/nest : undefined
@nrwl/next : undefined
@nrwl/node : undefined
@nrwl/nx-cloud : undefined
@nrwl/react : 13.8.3
@nrwl/react-native : undefined
@nrwl/schematics : undefined
@nrwl/storybook : 13.8.3
@nrwl/tao : 13.8.3
@nrwl/web : 13.8.3
@nrwl/workspace : 13.8.3
typescript : 4.4.4
rxjs : 6.6.7
---------------------------------------
Community plugins:
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! ๐