TypeError: common.ɵsetRootDomAdapter is not a function . Facing problem after serving ssr

I want to serve my project on ssr, after installing all the dependecies and building the project with npm run build:ssr, it fails on npm run serve:ssr, the error that appears is :
common.ɵsetRootDomAdapter(new DominoAdapter());
^
TypeError: common.ɵsetRootDomAdapter is not a function

this is my config :

Angular CLI: 8.3.28
Node: 12.18.2
OS: win32 x64
Angular: 8.2.14
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                                    Version
--------------------------------------------------------------------
@angular-devkit/architect                  0.803.26
@angular-devkit/build-angular              0.803.26
@angular-devkit/build-optimizer            0.803.26
@angular-devkit/build-webpack              0.803.26
@angular-devkit/core                       8.3.26
@angular-devkit/schematics                 8.3.28
@angular/cdk                               8.2.3
@angular/cli                               8.3.28
@angular/flex-layout                       10.0.0-beta.32
@angular/material                          8.2.3
@angular/material-moment-adapter           9.2.2
@angular/platform-server                   10.1.3
@ngtools/webpack                           8.3.26
@nguniversal/express-engine                8.2.6
@nguniversal/module-map-ngfactory-loader   8.2.6
@schematics/angular                        8.3.28
@schematics/update                         0.803.28
rxjs                                       6.4.0
typescript                                 3.5.3
webpack                                    4.39.2

Source: Angular Questions