I am using bootstrap 4 in my angular application, the dropdown function is working perfectly in mode developer but in production mode, I got this error:
Uncaught Error: DROPDOWN: Option "popperConfig" provided type "window" but expected type "(null|object)".
at Object.typeCheckConfig (vendors.e5434761d9d5f5d91054.bundle.js:1)
at e.t._getConfig (vendors.e5434761d9d5f5d91054.bundle.js:1)
at new e (vendors.e5434761d9d5f5d91054.bundle.js:1)
at HTMLButtonElement. (vendors.e5434761d9d5f5d91054.bundle.js:1)
and this is the code that i'am using in my application
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdown-search" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
Fiches consultées
</button>
<div class="dropdown-menu dropdown-filter filter-menu"
aria-labelledby="dropdown-search">
<div *ngFor="let h of historiques" class="form-check">
<input class="form-check-input" id="{{h.name}}" type="checkbox"
value="{{h.name}}" [(ngModel)]="h.selected"
(change)="getSelected()">
<label class="form-check-label" for="{{h.name}}">
{{h.code}}
</label>
</div>
</div>
</div>