ERROR in ./server.ts Module not found: Error: Can't resolve './dist/server/main.bundle' in ... @ ./server.ts 16:9-45

For anyone who comes across this. In Angular 6, 'bundle' no longer appears in the filename. Check your server.ts file against this version: https://angular.io/guide/universal

For example, this line used to include "main.bundle":

const { AppServerModuleNgFactory, LAZY_MODULE_MAP } = require('./dist/server/main');

Need to change path inside file tsconfig.server.json

From

 "files": [
    "src/main.server.ts",
    "server.ts"
  ],

TO

   "files": [
       "main.server.ts",
        "../server.ts"
    ],

Other configuration should match with

https://github.com/angular/angular-cli/wiki/stories-universal-rendering