[BUG] Package: ngx-bootstrap": "^10.2.0" is NOT compatible with the most current version of Angular 16.
#1005
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.
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)
It happens to me too
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 I forced the installation using npm install --legacy-peer-deps
While developing, but urgently awaiting a stable version.
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.
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 @adhonay
This hasn't been fixed in v6.0.0
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.
When will this issue be resolved?
@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 Which commit are you referring to?
@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 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 I've created this PR #1132
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?
Published version @formio/[email protected] with this change.