title: Uncaught TypeError: Object(…) is not a function BnNgIdleService in angular?
body: <p>In angular 7.2.4, trying to to display login page after compiling and running the project. While starting localhost:4200/#/login it gives the following error in the console:</p>
  <pre><code> Uncaught TypeError: Object(...) is not a function
      BnNgIdleService bn-ng-idle.js:79
      js bn-ng-idle.js:81
      Webpack 14
  </code></pre>
  <p><strong>package.json</strong></p>
  <pre><code>&quot;dependencies&quot;: {
      &quot;@angular-devkit/build-angular&quot;: &quot;^0.13.0&quot;,
      &quot;@angular/animations&quot;: &quot;7.2.4&quot;,
      &quot;@angular/cdk&quot;: &quot;7.3.7&quot;,
      &quot;@angular/common&quot;: &quot;7.2.4&quot;,
      &quot;@angular/compiler&quot;: &quot;7.2.4&quot;,
      &quot;@angular/core&quot;: &quot;7.2.4&quot;,
      &quot;@angular/forms&quot;: &quot;7.2.4&quot;,
      &quot;@angular/http&quot;: &quot;7.2.4&quot;,
      &quot;@angular/material&quot;: &quot;7.3.7&quot;,
      &quot;@angular/platform-browser&quot;: &quot;7.2.4&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;7.2.4&quot;,
      &quot;@angular/router&quot;: &quot;7.2.4&quot;,
      &quot;@ng-bootstrap/ng-bootstrap&quot;: &quot;4.0.1&quot;
         },
  </code></pre>