Skip to content
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

web: rollup executor invalid type-checking #9053

Closed
Hotell opened this issue Feb 21, 2022 · 7 comments
Closed

web: rollup executor invalid type-checking #9053

Hotell opened this issue Feb 21, 2022 · 7 comments
Labels
outdated scope: react Issues related to React support for Nx type: bug

Comments

@Hotell
Copy link
Contributor

Hotell commented Feb 21, 2022

Current Behavior

@nrwl/web:rollup executor uses under the hood https://github.com/ezolenko/rollup-plugin-typescript2 TS plugin.

Now because this plugin doesn't work as expected ezolenko/rollup-plugin-typescript2#298 one may/will ship invalid code to consumers.

Expected Behavior

rollup executor @nrwl/web:rollup should properly run type-checking to be on par with raw tsc

Environment

yarn : 1.22.10
  
  nx : 13.4.6
  @nrwl/angular : undefined
  @nrwl/cli : 13.4.6
  @nrwl/cypress : 13.4.6
  @nrwl/devkit : 13.4.6
  @nrwl/eslint-plugin-nx : 13.4.6
  @nrwl/express : undefined
  @nrwl/jest : 13.4.6
  @nrwl/linter : 13.4.6
  @nrwl/nest : undefined
  @nrwl/next : undefined
  @nrwl/node : undefined
  @nrwl/nx-cloud : undefined
  @nrwl/react : 13.4.6
  @nrwl/react-native : undefined
  @nrwl/schematics : undefined
  @nrwl/tao : 13.4.6
  @nrwl/web : 13.4.6
  @nrwl/workspace : 13.4.6
  @nrwl/storybook : 13.4.6
  @nrwl/gatsby : undefined
  typescript : 4.4.4
  rxjs : 6.6.7
@Hotell
Copy link
Contributor Author

Hotell commented Feb 21, 2022

NOTE: I tried to use official typescript rollup plugin - it type-checks correctly so maybe I'd reconsider to use that one for rollup executor (would be great to have some visibility why a non official plugin is being used ATM) .

@ronnetzer
Copy link

Hi @Hotell, any new regarding this one?
We've noticed that rollup-plugin-typescript2 has some performance issues compared to the official plugin which is significantly faster.

@AgentEnder AgentEnder added the scope: react Issues related to React support for Nx label Mar 7, 2022
@kirjai kirjai removed their assignment Apr 14, 2022
@github-actions
Copy link

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! 🙏

@github-actions github-actions bot added the stale label Oct 12, 2022
@Hotell
Copy link
Contributor Author

Hotell commented Oct 14, 2022

The issue has been closed as fixed in that roll-up plugin repo, so executor deps need to be bumped. We went with our own implementation to unblock. Cheers

@github-actions github-actions bot removed the stale label Oct 15, 2022
@StoneYaoTreelab
Copy link

The issue has been closed as fixed in that roll-up plugin repo, so executor deps need to be bumped. We went with our own implementation to unblock. Cheers

But even I migrate the nx to 15.0.0, the type check error still exist and the tsc type check is fine.

@jaysoo
Copy link
Member

jaysoo commented Feb 27, 2023

Fixed in 95a3bbf.

@jaysoo jaysoo closed this as completed Feb 27, 2023
@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: react Issues related to React support for Nx type: bug
Projects
None yet
Development

No branches or pull requests

6 participants