Questions tagged [angular-ssr]

45 questions
0
votes
0 answers

Angular server side rendering with proxy failing to get data from API

I am working on a website using angular server side rendering (SSR). The whole thing renders perfectly if no HTTP requests are performed in the app. BUT, as soon there is, the app renders but does not take the returned data to render the pages, and…
0
votes
2 answers

How to launch angular Server Side Render on Server Windows?

I built my project with Angular Universal succecced, i had the next folders: Browser, Assets, Server I copied all files from dist to my work package on a server, where before good worked my angular web site without SSR. After that I try to connect…
0
votes
0 answers

API requests are triggered in both SSR and browser

I'm looking for kind soul that can explain to me or point me to a resorce where I can learn about SSR in Angular. My problem At first a little background. Using RouterModule I have added rule that every link (that was not cached earler) should use…
ciekals11
  • 2,032
  • 1
  • 10
  • 24
0
votes
0 answers

Angular universal app loads very slow hosting on aws ec2

I have angular universal app hosting on aws ec2 which suddenly start loading very slow. Sometimes it loads fast but sometimes it takes almost 10 sec to make the connection to server then starts loading the app. These images are not more than 15kb…
Sheikh
  • 11
  • 1
0
votes
0 answers

Read data from file and use it on Angular ssr and csr

I have a config file and I want to use it without HTTP request on angular SSR and then somehow send data to CSR and use it on that too, this config file is a list of links that I want to use in website footer and be able to change them without…
0
votes
1 answer

Angular SSR Serve Error NullInjectorError: StaticInjectorError(AppServerModule)[REQUEST]

I'm building with SSR in Angular, then I'm serving with SSR and I'm facing such an error. I have injected all services. I have injected all components. Error: ERROR Error [NullInjectorError]: StaticInjectorError(AppServerModule)[REQUEST]: …
0
votes
0 answers

Problem with Angular Universal and APP_CONFIG from external file

I have come to a dead end and am unable to proceed. We have a decoupled website with server-side rendering. All of the data comes through GraphQL. The site works great without SSR. The app-config.json file loads and we get the data in the app…
0
votes
0 answers

Angular Universal App is causing high CPU Usage

I have integrated Angular Universal into my Angular App and I have deployed it into Azure App Services. Now I am observing that my app using a lot of the CPU than before. Earlier in Client Side Rendering CPU usage was very less but now I can see the…
0
votes
1 answer

Why does navigating to a route work, but when i put that URL into the address bar (Or reload page after navigating to it) express server returns error

I'm using an Express server, and everything seem to be working fine. I run my Angular application on it and it runs as it should Navigating between the different routes works like a charm. But if I navigate to a route, and reload the page in…
larschla
  • 377
  • 1
  • 6
  • 15
0
votes
1 answer

ANGULAR SSR with graphql and apollo, transferState doesn't transfer to client side

I have an angular aplications, which shows articles on first page. I don't want that api call is executed twice, first on the server and once on the client side, so I used transfer state to check if api was already called. If I use REST API…
0
votes
2 answers

Angular Universal not working with LOCAL_STORAGE from @ng-toolkit/universal

My angular application has universal set up and running, but server side rendering wasn't taking place. I got a suggestion and step by step tutorial on what to do, because apparently ssr wasn't working since I was using "window" and…
0
votes
2 answers

Angular Universal - Performance Profiling

I'm running Angular 13 and am completely stuck with why the performance is so bad on the server. I'm looking for any help on diagnosing the issue here. What's really strange to me is that it's clearly not the API calls / resolvers. Adding in some…
MattEnth
  • 843
  • 1
  • 7
  • 19
-1
votes
1 answer

Angular Universal with Azure App Service not working

I created an Angular universal app which is working fine in local but when I try to deploy it in Azure App Service its deploying successfully but not running the app. Getting 403 forbidden. `# Node.js with…
-1
votes
2 answers

Server side angular app is very slow compared to non-ssr app

My angular app has been converted into server side and currently rendering it via node server. The dist size has been doubled now (3 + 3 Mb) due to server & browser folders. Same app, I have built as a regular app (without SSR) and deployed on…
user2869612
  • 607
  • 2
  • 10
  • 32
-2
votes
1 answer

Getting error in bundle.js angular universal

My angular build is throwing this in web browser. Uncaught SyntaxError: expected expression, got '<' in bundle.js I am running this command npm run dev:ssr, and it generates no error. But when I browse the application it displays the error. I tried…
1 2
3