title: Uncaught TypeError: core_1.style is not a function
body: <p>I transformed my code from Angular 4 to Angular 7 and compiled it successfully. 
  But when I try to run it, in the console of the broser it gives the following errors.</p>
  
  <p><a href="https://i.stack.imgur.com/mF3vj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mF3vj.png" alt="Please see this image"></a></p>
  
  <pre><code>Uncaught TypeError: core_1.style is not a function
  at Object.&lt;anonymous&gt; (ng2-dropdown.bundle.js:435)
  at __webpack_require__ (ng2-dropdown.bundle.js:30)
  at Object.&lt;anonymous&gt; (ng2-dropdown.bundle.js:121)
  at __webpack_require__ (ng2-dropdown.bundle.js:30)
  at Object.&lt;anonymous&gt; (ng2-dropdown.bundle.js:65)
  at __webpack_require__ (ng2-dropdown.bundle.js:30)
  at ng2-dropdown.bundle.js:50
  at ng2-dropdown.bundle.js:53
  at webpackUniversalModuleDefinition (ng2-dropdown.bundle.js:3)
  at Object../node_modules/ng2-tag-input/node_modules/ng2-material-dropdown/dist/ng2-dropdown.bundle.js (ng2-dropdown.bundle.js:10)
  </code></pre>
  
  <p>Can someone point me out why I am getting this errors? I am very new to Angular. Thank you in Advance.</p>