title: Angular ERROR in : No provider for NgControl
body: <p>I'm creating a component implementing ControlValueAccessor to be used in a Reactive Form, it's just a wrapper of an input element with some pipe on it.</p>
  
  <p>I've injected the NgControl in order to retrieve the valid/invalid state and propagate them to the inner input element.</p>
  
  <p>When the input value is found in another input, it is invalid.</p>
  
  <p><a href="https://stackblitz.com/edit/control-value-accessor-ngcontrol" rel="nofollow noreferrer">Here is the Stackblitz</a></p>
  
  <p>On Stackblitz is working fine, but when I to an <em>ng build --prod</em> it raises the error:</p>
  
  <blockquote>
    <p>ERROR in : No provider for NgControl ("[ERROR ->])</p>
  </blockquote>
  
  <p>Do you see any problems?</p>
  
  <p>Thanks!</p>