How do I check what version of mbd I am using and steps to u


Topic: How do I check what version of mbd I am using and steps to update when I upgrade angular from 17-18

Aakash Banerjee pro premium priority asked 3 weeks ago

So I am trying to update angular 17-18. I normally use the npm git installation method for mdbootstrap "mdb-angular-ui-kit": "git+https://oauth2:xxxxxxxxxx@git.mdbootstrap.com/mdb/angular/mdb5/prd/mdb5-angular-ui-kit-pro-essential.git"

is there a way to check the steps involved to update mdbootstrap stuff when I upgrade angular or updates are automatically pulled in?

I have executed all the steps in angular update guide for 17-18 and the site runs fine but I am not sure if anything needs to be updated for mdbootstrap and the version I am using.

Thanks for any help.


Aakash Banerjee pro premium priority commented 3 weeks ago

When I run npm install after executing the ng update steps for upgrading angular from 17-18 it gives me these errors now.

npm install npm error code ERESOLVE npm error ERESOLVE could not resolve npm error npm error While resolving: mdb-angular-ui-kit@6.1.0 npm error Found: @angular/animations@18.2.13 npm error node_modules/@angular/animations npm error @angular/animations@"^18.2.13" from the root project npm error peerOptional @angular/animations@"18.2.13" from @angular/platform-browser@18.2.13 npm error node_modules/@angular/platform-browser npm error @angular/platform-browser@"^18.2.13" from the root project npm error peer @angular/platform-browser@"18.2.13" from @angular/forms@18.2.13 npm error node_modules/@angular/forms npm error @angular/forms@"^18.2.13" from the root project npm error 2 more (@angular/platform-browser-dynamic, @angular/router) npm error npm error Could not resolve dependency: npm error peer @angular/animations@"^17.0.0" from mdb-angular-ui-kit@6.1.0 npm error node_modules/mdb-angular-ui-kit npm error mdb-angular-ui-kit@"git+https://oauth2:xx@git.mdbootstrap.com/mdb/angular/mdb5/prd/mdb5-angular-ui-kit-pro-essential.git" from the root project npm error npm error Conflicting peer dependency: @angular/animations@17.3.12 npm error node_modules/@angular/animations npm error peer @angular/animations@"^17.0.0" from mdb-angular-ui-kit@6.1.0 npm error node_modules/mdb-angular-ui-kit npm error mdb-angular-ui-kit@"git+https://oauth2:xx@git.mdbootstrap.com/mdb/angular/mdb5/prd/mdb5-angular-ui-kit-pro-essential.git" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution.


Arkadiusz Idzikowski staff commented 3 weeks ago

Please try to remove package-lock.json and node_modules and reinstall dependencies again using npm install command. It looks like the npm install still tries to install MDB Angular v6.1.0 instead of the latest v7.1.0.


Aakash Banerjee pro premium priority answered 3 weeks ago

Thank you so much! It was still complaining about these two. Once I bumped the @angular/cdk@17.3.10 to 18.2.13 build went through.

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: proj@0.0.0
npm error Found: @angular/cdk@17.3.10
npm error node_modules/@angular/cdk
npm error   @angular/cdk@"^17.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @angular/cdk@"^18.0.0" from mdb-angular-ui-kit@7.1.0
npm error node_modules/mdb-angular-ui-kit
npm error   mdb-angular-ui-kit@"git+https://oauth2:xxxx@git.mdbootstrap.com/mdb/angular/mdb5/prd/mdb5-angular-ui-kit-pro-essential.git" from the root project
npm error

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB5 4.0.0
  • Device: Macbook Pro
  • Browser: Mozilla
  • OS: MacOS 15.1
  • Provided sample code: No
  • Provided link: Yes