From d01ab4d5305e30c6b85ce9aa6ddc91d1a79abba3 Mon Sep 17 00:00:00 2001 From: robingotz Date: Fri, 8 Sep 2023 22:54:32 +0200 Subject: [PATCH] fix: add @angular/platform-server/init to main.server.ts this will invoke Angular's Domino setup. Which allows access to browser elements like HTMLElement in a SSR environment. Closes #19 closes #24 --- apps/app/src/main.server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/app/src/main.server.ts b/apps/app/src/main.server.ts index 7da0945aa..b285944d8 100644 --- a/apps/app/src/main.server.ts +++ b/apps/app/src/main.server.ts @@ -1,4 +1,6 @@ import 'zone.js/node'; +import '@angular/platform-server/init'; + import { enableProdMode } from '@angular/core'; import { renderApplication } from '@angular/platform-server'; import { AppComponent } from './app/app.component';