Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NgbAccordion not working after the upgrade of ng-bootstrap from v15 to v16

I am upgrading angular from v16 to v17, after the upgrade of core and cli. I tried to upgrade ng-bootstrap from v15 to v16 because it is compatible with angular v17. But after upgrading the ng-bootstrap i am getting error while compiling that NgbAccordion is not supported in ng-bootstrap. how can i resolve this issue.The image show the error i am encountring

I tried use NgbAccordionItem insted of NgbAccordion but it didn't work.

like image 981
BP_Kaushik Shukla Avatar asked Dec 01 '25 16:12

BP_Kaushik Shukla


1 Answers

Try Changing the reference to NgbAccordionDirective instead of NgbAccordion, the file seems to be deleted and replaced with this NgbAccordionDirective instead

accordion.directive.ts

old api docs - accordion

new api docs - accordion

like image 107
Naren Murali Avatar answered Dec 03 '25 08:12

Naren Murali



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!