title: Got an error when I add "changeDetectionStrategy" to my app
body: <p>I'm building my first CRUD,Spring/hib with Angular7 in the frontend. When I try to add the changeDetectionStrategy in my component.ts i get this warnings:</p>
  
  <pre><code>WARNING in ./node_modules/@angular/compiler/src/core.js
  10:24-31 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
  
  WARNING in ./node_modules/@angular/compiler/src/selector.js
  10:24-31 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
  
  WARNING in ./node_modules/@angular/compiler/src/ml_parser/html_tags.js
  10:24-31 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
  
  WARNING in ./node_modules/@angular/compiler/src/ml_parser/tags.js
  10:24-31 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted.
  
  </code></pre>
  
  <p>The app has other components that work just fine and they have the changeDetectionStrategy import. When I add the method to my component angular gives me these errors. I commented all the component,except for @Component stuff and the "export class XY {   }. The error persist till I remove the changeDetectionStrategy. Any Idea of what could it be?</p>