Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular Universal app keeps loading problem

I was about to set up SSR for my Angular 7 app using Angular Universal. I followed the official documentation (https://angular.io/guide/universal). I reach the point, where I need to run npm run build:ssr && npm run serve:ssr. After that I see in terminal: Node Express server listening on http://localhost:4000. No errors both in terminal and browser. The page just keeps on loading.

Any ideas?

like image 377
Martin Pach Avatar asked Oct 28 '22 14:10

Martin Pach


1 Answers

It has something to do with unsupported properties like window, document, setTimeout. It is VERY frustrating that the debug gives you no help at all.

like image 140
Tony Smith Avatar answered Jan 02 '23 19:01

Tony Smith