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

fix(angular): clean up ssr main.server.ts generation #16699

Merged
merged 1 commit into from
May 2, 2023

Conversation

leosvelperez
Copy link
Member

@leosvelperez leosvelperez commented May 2, 2023

Current Behavior

  • @angular/platform-server/init is imported in generated main.server.ts. This is not needed since Angular v15 (angular/angular-cli@979bce4).
  • renderModule symbol from @angular/platform-server is exported. This is not needed since Angular v15 (angular/angular-cli@15d3fc6). A migration was run to remove it when Angular v15 came out, but the generator kept generating this.

Expected Behavior

  • @angular/platform-server/init is not imported in generated main.server.ts for Angular v15 or later. It's still generated for Angular v14.
  • renderModule symbol from @angular/platform-server is not exported for Angular v15 or later. It's still generated for Angular v14.

Note: I duplicated the migration that was run when Nx 15.2.0 came out (version that added Angular v15 support) so we can correct any new generation that happened after that.

Related Issue(s)

Fixes #

@leosvelperez leosvelperez self-assigned this May 2, 2023
@vercel
Copy link

vercel bot commented May 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) May 2, 2023 2:55pm

@leosvelperez leosvelperez force-pushed the angular/fix-ssr-generation branch from feb942b to 0818da5 Compare May 2, 2023 14:51
@leosvelperez leosvelperez force-pushed the angular/fix-ssr-generation branch from 0818da5 to 44955aa Compare May 2, 2023 14:54
@leosvelperez leosvelperez marked this pull request as ready for review May 2, 2023 15:14
@leosvelperez leosvelperez requested a review from Coly010 as a code owner May 2, 2023 15:14
@github-actions
Copy link

github-actions bot commented May 8, 2023

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 May 8, 2023
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.

2 participants