All Questions
Tagged with angular-ssr angular-universal
33 questions
0
votes
1
answer
40
views
Which one is @angular-devkit/build-angular:application equivalent in @angular-builders/custom-webpack
We have requirement to hide environment variables which are comes together in build files in angular application.
We found solution using @angular-builders/custom-webpack and dotenv libraries when ...
0
votes
0
answers
108
views
Angular SSR guard and resolver functions are executed on both, client and server
I'm building an SSR Angular app (with provided hydration) and I'm using Resolver and Guard functions. I noticed that they are running on both the server and the client. I believe that it is redundant ...
2
votes
1
answer
311
views
Angular: cdk-virtual-scroll-viewport- scrollWindow attribute not working in angular ssr (universal), giving error- document is not defined
On using cdk-virtual-scroll-viewport in Angular SSR app and adding scrollWindow attribute, I am getting the following error:-
document is not defined
at _CdkVirtualScrollableWindow (...\...
0
votes
0
answers
815
views
Angular 17 [vite] Internal server error: Cannot convert undefined or null to object
After upgrading from Angular 15 to 17 i keep getting this error.
PM [vite] Internal server error: Cannot convert undefined or null to object
at Function.getPrototypeOf ()
at node_modules/whatwg-url/...
-1
votes
2
answers
985
views
Angular SSR complains about non-ESM modules in my Express API code
I have an Angular SSR project set up to run my Express API as part of the SSR service. All my app code lives in /src/app, and all my API code lives in /src/api. There are some imports of my API code ...
1
vote
0
answers
129
views
Angular universal SSR 16, first call to find user's ip went from server instead of client?
I want to retrieve the client's browser IP address when running an Angular SSR application. In Angular 16, do I need to use provideModuleMap(LAZY_MODULE_MAP)?
Here, Is the code I have tried. enter ...
0
votes
2
answers
368
views
How do you communicate from the browser with the express.js server using angular ssr?
I've run into an SSR issue that somehow neither the Angular docs nor the new Angular dev docs provide information about it or at least I did not find any.
I'd like to know how one transfers data from ...
0
votes
1
answer
292
views
Is there a way to tell Firestore to fetch and wait, so Angular SSR will render the response data in the server instead of in the client?
my goal is to get data from the Firestore and render the response data in the server.
The problem is, Firestore somehow manage to tell the component not to wait and just send the HTML to the client.
...
0
votes
1
answer
195
views
angular ssr and BreakpointObserver
I'm using BreakpointObserver to modify my view on the client side based on the size of the browser, however I believe this doesn't work on server side rendering as everything looks weird and ...
3
votes
1
answer
3k
views
How to perform an HttpClient Get request on the server using Angular 17 SSR?
I'm currently using SSR in combination with Angular for the first time. I created a basic application with routing and one of my components that can be navigated to does an HttpClient.get request.
...
1
vote
0
answers
268
views
Angular 17 Passing Http Status code When Using Cloudflare Worker/Pages
I am trying to setup an Angular App on Cloudflare Pages/Worker.
I have generated a test app using the Cloudflare CLI. The CLI generates an Angular 17 app with below server.ts file:
import { ...
4
votes
0
answers
815
views
ng2-pdf-viewer - Angular Universal (Express Engine)
I am using Angular standalone component (no modules) with Angular Universal (Express Engine). I added ng2-pdf-viewer but when I start the server, I am getting the below error:
./node_modules/canvas/...
2
votes
4
answers
2k
views
change status code of Response in @angular/ssr in angular 17
new method of ssr introduced in angular 17. how can i change status code of express response in angular components now?
previously i changed the response like this:
import { RESPONSE } from '@...
0
votes
0
answers
119
views
Angular 14 SSR is giving an 'at XMLHttpRequest3.send()' error after being successfully compiled using the npm run dev:ssr command
I am implementing Angular Universal (SSR) in Angular 14. The application builds without any issues when I run npm run build:ssr. Furthermore, I can successfully compile it using npm run dev:ssr. ...
0
votes
0
answers
140
views
Angular Universal (Angular 16) does not display data loaded from API in Page Source
I am building a website with Angular 16 and it's now time to add Angular universal to add SSR and display HTML in my browser for SEO perposes.
I have followed the Angular documentation here to install ...