angular icon indicating copy to clipboard operation
angular copied to clipboard

[BUG] Package: ngx-bootstrap": "^10.2.0" is NOT compatible with the most current version of Angular 16.

Open adhonay opened this issue 2 years ago • 9 comments

#1005

image

adhonay avatar Sep 25 '23 12:09 adhonay

Not sure why formio team decided to include ngx-bootstrap seems like a bad idea. IMO I would not tightly couple any of the 3rd packages that you dont have control over. Its going to be so hard to keep formio/angular in-sync with Angular version.

dinbtechit avatar Oct 07 '23 19:10 dinbtechit

This is also happening to me when trying to install @formio/angular with angular 16. I get the following error

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/animations
npm ERR!   @angular/animations@"^16.0.4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/animations@"^15.0.0" from [email protected]
npm ERR! node_modules/ngx-bootstrap
npm ERR!   peer ngx-bootstrap@"^10.2.0" from @formio/[email protected]
npm ERR!   node_modules/@formio/angular

It seams that formio/angular itself support angular 16, but ngx-bootrap 10.2.0 doesn't (it supports up to angular 15)

MiguiTE avatar Oct 11 '23 07:10 MiguiTE

It happens to me too

Ludovic1974 avatar Oct 11 '23 12:10 Ludovic1974

It looks like only upgrading ngx-bootstrap will help to resolve compatibility problems. Only version 11 supports Angular 16

https://valor-software.com/ngx-bootstrap/#/documentation#compatibility https://github.com/valor-software/ngx-bootstrap/tree/v11.0.2

Is that possible to do such upgrade from incompatible v10 to v11?

wad3eleks avatar Oct 30 '23 12:10 wad3eleks

@wad3eleks I forced the installation using npm install --legacy-peer-deps

While developing, but urgently awaiting a stable version.

adhonay avatar Oct 30 '23 13:10 adhonay

Having similar issue while upgrading @formio/angular to v6 on Angular v16.2.12

_npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/animations
npm ERR!   @angular/animations@"16.2.12" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/animations@"^15.0.0" from [email protected]
npm ERR! node_modules/ngx-bootstrap
npm ERR!   peer ngx-bootstrap@"^10.2.0" from @formio/[email protected]
npm ERR!   node_modules/@formio/angular
npm ERR!     @formio/angular@"6.0.0-rc.8" from the root project_

An urgent fix on the same would be helpful instead of force install the lib. @travist , it would be great if you could have a look at this. TIA.

neerajlk avatar Dec 14 '23 09:12 neerajlk

I'm guessing this has been resolved now with @formio/[email protected] as @adhonay has closed this related issue: https://github.com/formio/angular/issues/1005

I'm going to close it, but feel free to comment if 6.0.0 doesn't resolve the issue.

lane-formio avatar Apr 03 '24 13:04 lane-formio

@lane-formio @adhonay This hasn't been fixed in v6.0.0 image

Nach0Git avatar Jul 03 '24 14:07 Nach0Git

If someone wants to make a PR to the 6.0.x branch I can get it reviewed and into a 6.0.x patch.

lane-formio avatar Aug 09 '24 13:08 lane-formio

When will this issue be resolved?

ps91 avatar Mar 13 '25 13:03 ps91

@lane-formio in the 6.0.x branch the last commit already updated package.json and the ngx-bootstrap to the right version. Can't you launch a version?

ps91 avatar Mar 14 '25 11:03 ps91

@ps91 Which commit are you referring to?

lane-formio avatar Mar 14 '25 20:03 lane-formio

@lane-formio This branch:

https://github.com/formio/angular/tree/6.0.x

The package.json has the correct ngx-bootstrap version for the Angular 16.

ps91 avatar Mar 17 '25 14:03 ps91

@ps91 Maybe you aren't looking in the right spot? Make a PR and I'll get it reviewed. https://github.com/formio/angular/blob/6.0.x/projects/angular-formio/package.json

lane-formio avatar Apr 02 '25 21:04 lane-formio

@lane-formio I've created this PR #1132

ps91 avatar Apr 03 '25 09:04 ps91

Thank you @ps91!!!

@lane-formio can we pull this into the master branch and then ensure it is pulled into the next 6.x release of Angular?

travist avatar Apr 03 '25 14:04 travist

Published version @formio/[email protected] with this change.

lane-formio avatar Apr 04 '25 14:04 lane-formio