Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71530

Ionic 2 Projects: updating to beta.6

$
0
0

@tim wrote:

Hello Ionites! Migration guide extraordinaire @iignatov has created another excellent resource which he asked me to share with you, since there were some changes to imports in the starters as of beta.6.

  1. Update the Ionic CLI to the latest version:

npm install -g ionic@beta

  2. If you're upgrading a project using Ionic 2.0.0-beta.3 or older check out the following guide first.

  3. Remove the line import 'es6-shim' from app.ts/app.js.

  4. Add es6-shim.min.js before angular2-polyfill.js in the index.html file:

  <!-- Polyfill needed for platforms without Promise and Collection support -->
  <script src="build/js/es6-shim.min.js"></script>
  <!-- Zone.js and Reflect-metadata  -->
  <script src="build/js/angular2-polyfills.js"></script>
  <!-- the bundle which is built from the app's source code -->
  <script src="build/js/app.bundle.js"></script>

  5. Update your package.json (do not copy&paste use these as a reference and update the ones in your file):

"dependencies": {
  "angular2": "2.0.0-beta.15",
  "es6-shim": "^0.35.0",
  "ionic-angular": "2.0.0-beta.6",
  "ionic-native": "^1.1.1",
  "ionicons": "3.0.0-alpha.3",
  "reflect-metadata": "0.1.2",
  "rxjs": "5.0.0-beta.2",
  "zone.js": "^0.6.11"
}

  6. In your package.json update the version of ionic-gulp-scripts-copy to ^1.0.1.

  7. From inside of your project's folder run npm install to install the new packages.

  8. Check out the changelog for breaking changes and update your project accordingly.

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 71530

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>