Running the following command : npm run build:ssr && npm run serve:ssr runs 3 different compilation stages but on the last one it returns the following error resulting to the server not starting.

```
Error: not supported
at Root.loadSync (/var/www/html/stage/node_modules/@grpc/proto-loader/node_modules/protobufjs/src/root.js:234:15)
at Object.loadSync (/var/www/html/stage/node_modules/@grpc/proto-loader/node_modules/protobufjs/src/index-light.js:69:17)
at Object.<anonymous> (/var/www/html/stage/node_modules/@grpc/proto-loader/build/src/index.js:244:37)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
at Module.require (internal/modules/cjs/loader.js:657:17)
at require (internal/modules/cjs/helpers.js:22:18)

```

Environment and packages"

```
Angular CLI: 8.3.3
Node: 11.6.0
OS: linux x64
Angular: 8.2.5
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, platform-webworker
... platform-webworker-dynamic, router, service-worker

```

My server.ts looks as follows

```
const PORT = process.env.PORT || 4000;
const DIST_FOLDER = join(process.cwd(), 'dist');
const domino = require('domino');
const fs = require('fs');
const path = require('path');
const template = fs.readFileSync(path.join(__dirname,   join(DIST_FOLDER, 'browser/index.html'))).toString();
const win = domino.createWindow(template);
global['window'] = win;
global['navigator'] = win.navigator;
global['Node'] = win.Node;
global['Event'] = win.Event;
global['Event']['prototype'] = win.Event.prototype;
global['document'] = win.document;
global["branch"] = null;
global['localStorage'] = localStorage;

```