title: Error: No ErrorHandler. Is platform module (BrowserModule) included? when trying to load angular app from jsf page
body: <p>We have a legacy app that includes POJavascript, prototype, jquery. </p>
  
  <p>We are rewriting the app in angular one part at a time.
  Currently we have rewritten some part with angular4. We are using webpack to bundle angular4 app, including angular bundles in application's landing page which worked well; webpack dev server is also working good.</p>
  
  <p>Now, I am trying to upgrade to angular CLI and angular v6.2.1. So, I created a new project with CLI and then copied my angular4 source code into this new project, resolved all errors. CLI is spitting out all required scripts. I am including these scripts in my landing page. </p>
  
  <p>With prod build it doesn't show any error in console and angular app doesn't load. I tried with ng serve, by including <code>https://localhost:4200/xxx</code> scripts in landing page, and it is showing below error in console...</p>
  
  <p><strong>NOTE</strong>: angular App works if directly accessed <code>(https://localhost:4200)</code> without any errors; but I need to access this through my legacy app's landing page, as lot of other things gets initialized and we need to release part by part. I think this is something related to zone, but can't figure out the exact issue.</p>
  
  <pre><code>Error: No ErrorHandler. Is platform module (BrowserModule) included?
  Stack trace:
  ["./node_modules/@angular/core/fesm5/core.js"]/PlatformRef.prototype.bootstrapModuleFactory/&lt;@https://localhost:4200/vendor.js:43138:23 [angular]
  forkInnerZoneWithAngularBehavior/zone._inner&lt;.onInvoke@https://localhost:4200/vendor.js:42646:24 [angular]
  ["./node_modules/@angular/core/fesm5/core.js"]/NgZone.prototype.run@https://localhost:4200/vendor.js:42560:16 [&lt;root&gt;]
  ["./node_modules/@angular/core/fesm5/core.js"]/PlatformRef.prototype.bootstrapModuleFactory@https://localhost:4200/vendor.js:43133:16 [&lt;root&gt;]
  ["./node_modules/@angular/core/fesm5/core.js"]/PlatformRef.prototype.bootstrapModule/&lt;@https://localhost:4200/vendor.js:43175:53 [&lt;root&gt;]
  scheduleResolveOrReject/&lt;@https://localhost:4200/polyfills.js:3194:29 [&lt;root&gt;]
  drainMicroTaskQueue@https://localhost:4200/polyfills.js:2917:25 [&lt;root&gt;]
  ["./node_modules/zone.js/dist/zone.js"]/&lt;/ZoneTask.invokeTask@https://localhost:4200/polyfills.js:2822:21 [&lt;root&gt;]
  patchEventTarget/invokeTask@https://localhost:4200/polyfills.js:3862:9 [&lt;root&gt;]
  patchEventTarget/globalZoneAwareCallback@https://localhost:4200/polyfills.js:3888:17 [&lt;root&gt;]
  </code></pre>