Meteor 1.2.x to 1.4.x Migration Guide

Official Meteor Migration Guide

  1. update to Meteor 1.3.5.1
    meteor update --release 1.3.5.1
  2. check app running on Meteor 1.3.5.1
  3. update to Meteor 1.4.x
    meteor update
    meteor update --all-packages
  4. initialise npm
    meteor npm init
  5. replace old npm-container
    Remove packages from your app: meteor remove meteorhacks:npm npm-container
    Remove the generated npm-container package: rm -r packages/npm-container
    Move the contents of packages.json to the dependencies section of your package.json
    Simply use import instead of Npm.require()
  6. rebuild npm modules (since Node version was upgraded to 4.4.7 in Meteor 1.4)
    meteor npm rebuild
  7. install native implementation of bcrypt
    meteor npm install --save bcrypt
  8. install React
    meteor npm install --save react react-dom react-addons-pure-render-mixin
  9. hookup react to meteor reactive data layer
    meteor add react-meteor-data
  10. add support for ES2015 modules (installed with new Meteor 1.3 apps)
    meteor npm install --save meteor-node-stubs

Notes

  1. As of 1.4, you must ensure your MONGO_OPLOG_URL contains a replicaSet argument (see the changelog and the oplog documentation).