title: Angular 6 Server side rendering with angular universal gives error Zone is not defined
body: <p>I have setup project and that works completely fine with ng serve.</p>
  
  <p>I want to make it to server side redering so i have added @ng-toolkit/universal by ng add @ng-toolkit/universal and it is added.</p>
  
  <p>steps are as follows : </p>
  
  <pre><code>step 1 : ng add @ng-toolkit/universal
  step 2 : npm run build:prod
  step 3 : npm run server
  </code></pre>
  
  <p>step 1 will add the server side rendering code structure automatically then step 2 will create build of an application till that works fine now when I do step 3 at that time get ReferenceError: Zone is not defined</p>
  
  <pre><code>/var/www/html/myproject/dist/server.js:220102
  Zone.__load_patch('ZoneAwarePromise', function (global, Zone, api) {
  ^
  ReferenceError: Zone is not defined
  at /var/www/html/myproject/dist/server.js:220102:1
  at module.exports.FUNCTION (/var/www/html/myproject/dist/server.js:219466:10)
  at Object.module.exports.Object.defineProperty.value (/var/www/html/myproject/dist/server.js:219468:2)
  at __webpack_require__ (/var/www/html/myproject/dist/server.js:21:30)
  at Object.&lt;anonymous&gt; (/var/www/html/myproject/dist/server.js:221764:1)
  at __webpack_require__ (/var/www/html/myproject/dist/server.js:21:30)
  at /var/www/html/myproject/dist/server.js:70:18
  at Object.&lt;anonymous&gt; (/var/www/html/myproject/dist/server.js:73:10)
  at Module._compile (internal/modules/cjs/loader.js:702:30)
  at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! myproject@0.0.0 server: `node local.js`
  npm ERR! Exit status 1
  npm ERR! 
  npm ERR! Failed at the myproject@0.0.0 server script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /home/nitin/.npm/_logs/2018-07-26T05_47_07_681Z-debug.log
  </code></pre>
  
  <p>I have checked my polyfills.ts it contais the  import 'zone.js/dist/zone'; </p>
  
  <p>I tried by commenting in polyfills.ts and then added following code in main.ts then follows the steps but in step 3 get same error.</p>
  
  <pre><code>document.addEventListener('DOMContentLoaded', () =&gt; {
  platformBrowserDynamic().bootstrapModule(AppModule, {
  ngZone: 'noop'
  )
  .catch(err =&gt; console.log(err));
  });
  </code></pre>