Skip to content

Upgrade from 1.0.1 to 2.0.0 beta.3

Stoovm edited this page Aug 24, 2018 · 3 revisions

Follow these steps to upgrade to Covalent 2.0.0-beta.3 upgrade:

  • Go here https://update.angular.io and upgrade to Angular 6 as needed by Covalent 2.0.0-beta.3
    • Select Angular version upgrade from 5.2 (which Covalent 1.0.1 is using) to 6 (which Covalent 2.0.0-beta.3 is using)
    • Select other options respective of your projects configuration
    • Complete all the steps indicated
  • Upgrade the Covalent packages to:
"@covalent/core": "2.0.0-beta.3",
"@covalent/dynamic-forms": "2.0.0-beta.3",
"@covalent/highlight": "2.0.0-beta.3",
"@covalent/http": "2.0.0-beta.3",
"@covalent/markdown": "2.0.0-beta.3",

Caveats side note:

  • The ng upgrade command missed a RXJS import file paths mod that needed to occur. Try running your project with ng serve and you may see those error too, it's very project setup specific so you may not see any issues.
  • You might have to manually upgrade @angular/material/cdk to ^6.x.x if ng upgrade doesn't take care of it.
  • You might have to manually upgrade @ngx-translate/core to ^10.x.x to support Angular 6 if ng upgrade doesn't take care of it.
  • You might have to manually upgrade @ngx-translate/http-loader to ^3.x.x to support Angular 6 if ng upgrade doesn't take care of it.
  • In your package.json if you have a script using the --sourcemap flag on an ng test or ng build command, you will have to change it too --source-map or else an error with be thrown when running that script.
  • In your package.json if you have a script using the --proxy-config flag on an ng e2e command, you will have to change it too --protractor-config or else an error with be thrown when running that script.