Skip to content

Angular universal with .net 6 #43970

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

Closed
1 task
Eslam-95 opened this issue Sep 14, 2022 · 4 comments
Closed
1 task

Angular universal with .net 6 #43970

Eslam-95 opened this issue Sep 14, 2022 · 4 comments
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-spa ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question Status: Resolved

Comments

@Eslam-95
Copy link

Eslam-95 commented Sep 14, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Hello , I have created .net 6 project with angular and it was all working fine till i had to make the angular app run as SSR so i installed required package and setup everything put when i try to run it from microsoft visual it's not working , tried to change startup command and fallback file path and the build command and everything possible but nothing seems to work , so i was wondering if there is something i had to do inside the .net to compile the angular ssr or what is the required steps for it keeping in mind that i am trying to deploy it on azure and on azure it doesn't recogize it at all either . thanks in advance

Expected Behavior

i expected that when i install angular universal the app will get same behavior or i get the option to run both whether it's ssr or aot , but when i did it doesn't recognize the angular universal at all

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

6

Anything else?

No response

@javiercn
Copy link
Member

@Eslam-95 thanks for contacting us.

We do not have SSR support in the templates. That requires running node inside of the .NET process which we stopped supporting a few releases ago. See dotnet/docs#14958.

There are third-party community packages that fill this gap that you can use.

@javiercn javiercn added question area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-spa ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. labels Sep 14, 2022
@ghost ghost added the Status: Resolved label Sep 14, 2022
@ghost
Copy link

ghost commented Sep 15, 2022

This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes.

See our Issue Management Policies for more information.

@ghost ghost closed this as completed Sep 15, 2022
@hanykamel
Copy link

@javiercn , what is the third party package that fixes this issue

@Eslam-95
Copy link
Author

@javiercn thanks for your response , but i have one more question regarding the third party package , i have tried this article https://pieterjandeclippel.medium.com/server-side-rendering-in-asp-net-core-angular-2022-version-7aaed8157976 followed its steps cautionly and it lead to nothing , it didn't work locally either on azure so any advice or recommendation about any other thing i can use to get them owrking together , thanks in advance

@ghost ghost locked as resolved and limited conversation to collaborators Oct 18, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-spa ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question Status: Resolved
Projects
None yet
Development

No branches or pull requests

3 participants