@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@beta2. If you're upgrading a project using Ionic
2.0.0-beta.3or older check out the following guide first.3. Remove the line
import 'es6-shim'fromapp.ts/app.js.4. Add
es6-shim.min.jsbeforeangular2-polyfill.jsin theindex.htmlfile:<!-- 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.jsonupdate the version ofionic-gulp-scripts-copyto^1.0.1.7. From inside of your project's folder run
npm installto install the new packages.8. Check out the changelog for breaking changes and update your project accordingly.
Posts: 4
Participants: 3