-
-
Notifications
You must be signed in to change notification settings - Fork 24
Migrating from Angel to Angel3
Thomas Hii edited this page May 18, 2021
·
29 revisions
WARNING, backup your existing code before proceeding with migration as the process cannot be reversed. Angel project can be upgraded to Angel3 by following the steps below:
- Run
dart pub outdated --mode=null-safety. Make sure all the packages exceptangel_*are upgradable. - Check that all
angel_*packages can be upgraded by referring to Migrated Angel3 Packages. - Upgrade all
angel_*packages manually inpubspec.ymlby referring to NNDB Basic Starter Template or NNDB ORM Starter Template - Run
dart pub upgrade --null-safetyto upgrade the rest of the packages automatically. - Run
dart migrateto do the migration. - Fix and resolve NNBD related warnings and errors in the code.
- Replace all
angel_*packages inpubspec.ymlwithangel3_*equivalent by referring to Migrated Angel3 Packages. - Fix and resolve import errors in your project by updating them to
angel3_*packages.