<aside> ⚠️ The guide is written to upgrade:

Starting from earlier versions might work, but it’s not guaranteed (it will probably need extra work). Note: there is an older guide to upgrade to Angular v16.

</aside>

<aside> 🎏 References:

Step by step guide

<aside> 🆚 Before to start, make sure your developer tools are updated to the versions stated in our Development basics guide.

</aside>

Front-end

  1. Locate the front-end folder.

  2. In the package.json file remove any @idea-ionic/xxx package. Then, run npm i.

  3. Run ng update --allow-dirty @angular/core@17 @angular/cli@17 which should bring you to version 17 of Angular.

  4. Remove the package-lock.json file and the node_modules folder.

  5. Replace the content of angular.json file with the following one, make sure to adapt it in case of specific changes in the project.

  6. In the package.json file, refer to to the following versions for dependencies and devDependencies and manually fix the packages versions so that all of IDEA’s projects are aligned to the very same state. Note: you don’t have to add packages that your codebase don’t need; also: there could be some packages missing from the list.

  7. Add the following piece of code at the end of the file, to support Ionic’s dynamic font scaling:

  8. Run a npm i to reinstall everything from a clean state.

  9. From the front-end folder, run npm i PACKAGE@latest, for each of the following packages:

    1. idea-toolbox.
    2. All the @idea-ionic/xxx and other packages removed in the first steps.

    <aside> ⚠️ When updating these libraries, check the release notes from the previous version to make according changes.

    </aside>

Test

  1. You’re almost done! Test everything (web, iOS, Android) before to commit!!

Useful to know