Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
247 views
in Technique[技术] by (71.8m points)

angular - ngx-booptstrap: What are main differences in between ngx-booptstrap version 3.x.x and 4.x.x

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!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can find changelogs here. I've already sorted it for you, and, you will see 4.2.0 and lower. Also, you can check CHANGELOG.MD

Actually, I can't really say, what kind of breaking change has been merged, which required a new version. There were position & adaptive changes, also, a bunch of changes, related to CI and build process, so, maybe, 4.0.0 was created because of that.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...