nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.5k stars 2.34k forks source link

Angular server side rendering failing #4212

Closed kedevked closed 3 years ago

kedevked commented 3 years ago

Adding ssr to angular does not render the page.

Steps to reproduce

Please consider my repo here: https://github.com/kedevked/angular-nest

mehrad-rafigh commented 3 years ago

@kedevked you are not using the ssr lib correctly. Please refer to documentation on how to use ng-universal

kedevked commented 3 years ago

Sorry, you were right. There were some module to be imported. Thanks

Jixxus commented 3 years ago

@kedevked How did you manage to get this working? I just can't get past this error while accessing the server via browser:

Error: ENOENT: no such file or directory, open 'C:\..\repo_root\app.component.html'

Any help would be very appreciated. Thank you.

kedevked commented 3 years ago

Hello @JizZuS, I just published a video here outlining my steps

samosunaz commented 3 years ago

I was struggling with this, but managed to make it work, you can see the instructions here https://samosunaz.hashnode.dev/nestjs-angular-universal-in-an-nx-workspace

github-actions[bot] commented 1 year ago

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.