I have updated my application from angular version 5 to latest. Here's detail:
Angular CLI: 6.2.1
Node: 8.12.0
OS: win32 x64
Angular: 6.1.6
Also I am using this: ng-toolkit-universal to achieve server side rendering. I am able to build application using command "npm run build:prod" , but facing following issue while running command: "npm run server":
Can anyone please help or suggest some soution for the same.
Thanks in advance!

windowObject in your Angular App? If you have, It's advisable to useRenderer2for doing DOM Manipulations instead of directly using thewindowor thedocumentobject.windowor thedocumentobject as it runs on Server. That's why Angular Team recommends use ofRenderer2