I am working on project Angular 6 where datepicker throws an error when used from ngx-bootstrap version 4.3.0.
Initializers are not allowed in ambient contexts.
Well I learned that versions of typescript , angular and rxjs should be in sync (which are if I am not mistaken ) and that I can solve issues with ngx-bootstrap to modify file in node folder, which is not working solution for my case.
[email protected]
[email protected] @angular/[email protected]
As potential solution for others who have same issue, I downgraded ngx-bootstrap to version 3.3.0 and that is fine now build works properly and datepicker is not UNMET PEER DEPENDENCY as was case with ngx-bootstrap version 4.x.
Now the question: I see both ngx-bootstrap versions support Bootstrap 3 and 4. I was not able to locate change log so wondering if anyone can help providing link or simple tell the differences and what is potential downside of downgrading version 4.x to 3.x ?
Note: it's a huge existing project limited with Angular version 6.
Thank you in advance!