title: Angular error in P-fileupload when ng build --prod
body: <p>In my Angular project, when I try to run <code>ng build --prod</code>, I have this issue in the <code>p-fileUpload</code> from <a href="https://www.primefaces.org/primeng/#/fileupload" rel="nofollow noreferrer">primeng</a>:</p>
  
  <blockquote>
    <p><code>media.component.html</code> (5,81): Supplied parameters do not match any signature of call target</p>
  </blockquote>
  
  <p>But if I use the <code>ng build</code> without <code>--prod</code>, it builds normally. Same if I use <code>ng serve</code>.</p>
  
  <p>This is the code: </p>
  
  <pre><code>&lt;p-fileUpload mode="basic" #fileInput name="files" url="{{url}}" auto="auto" (onBeforeUpload)="onBeforeUpload($event)" chooseLabel="Allega file"
           (onUpload)="onUpload($event)" (onProgress)="onProgress($event)" (onError)="onError($event)" multiple="multiple" (onBeforeSend)="onBeforeSend($event)"
           accept="{{uploadAcceptedFormat}}" maxFileSize="{{maxUploadSize}}"&gt;&lt;/p-fileUpload&gt;
  </code></pre>
  
  <p>And this is the method:</p>
  
  <pre><code>  onError(event: any) {
      this.showProgressBar = false;
      console.log(event);
      this.openSnackBar('Upload fallito')
    }
  
  onBeforeSend(event) {
  
      event.xhr.setRequestHeader('Authorization', 'Bearer ' + localStorage.getItem('token'));
  
      this.showProgressBar = true;
    }
  
    onUpload(event) {
      this.openSnackBar('Upload completato')
      this.progressValue = 0;
      this.showProgressBar = false;
      this.reloadMedias();
    }
  
    onBeforeUpload(event) {}
  
    onProgress(event) {
      if (event.originalEvent.loaded !== 0) {
        this.progressValue = (event.originalEvent.loaded / event.originalEvent.total) * 100;
      }
    }
  </code></pre>
  
  <p>Like all other methods in the fileupload I have 1 event, so why this give me errors only with <code>--prod</code></p>