Meteor 3.0 Migration Guide | Meteor 3.0 Migration Guide (original) (raw)
Meteor 3.0 Migration Guide
You are reading the migration guide for Meteor 3!
This is a live document which will be updated as development progresses.
This guide is for users with Meteor 2.x projects understand the changes between Meteor 2.x and Meteor 3.0. It's not required to read this guide before starting with Meteor 3.0. To learn Meteor 3.0, we recommend reading the new documentation.
What's the status of version 3.0?
Meteor 3.0 is currently in its official version!
Latest version: 3.1.0
Node.js version: 22.11.0 LTS
NPM version: 10.9.0
How to try Meteor 3.0?
You can create a new Meteor 3.0 project by running the command below:
bash
meteor create my-new-project --release 3.1.0
How to upgrade from Meteor 2.x?
You can upgrade your Meteor 2.x project by running the command below inside your project folder:
bash
meteor update --release 3.1.0
meteor reset # resets project to a fresh state
If you are upgrade from an older version of Meteor, you might have a different MongoDB driver version. If you encounter issues, consider clearing the local database.
bash
meteor reset --db # resets local db
Also, it's a good idea to completely remove node_modules
and the package-lock.json
before running meteor npm install
:
bash
rm -rf node_modules package-lock.json
meteor npm install
Which will install the necessary packages using the latest Node.js version from Meteor 3.
What this guide will cover?
This guide covers the necessary topics for migrating your application from Meteor 2.x to Meteor 3.0, including:
- Frequently Asked Questions, answers to common questions.
- Breaking Changes, an overview of the changes that will affect your application.
- Meteor.call x Meteor.callAsync, why should you change your methods to use
Async
methods. - Upgrading packages, how to upgrade your packages to the be compatible with Meteor v3.
- Meteor.call x Meteor.callAsync, why should you change your methods to use
- How async functions work and how to use them, a how-to guide in how to use async functions and helpers for Meteor.
- Renamed Functions, a list of functions that were renamed in Meteor v3.
- Removed Functions, a list of functions that were removed in Meteor v3.
- React in Meteor v3, how to migrate your React code to Meteor v3.
- Blaze in Meteor v3, how to migrate your Blaze code to Meteor v3.
- Migrating to Async in Meteor 2.x, how can you migrate your application to Meteor v3 while in 2.x.
External Resources
We are aware of these articles and guides to assist with your migration:
- Prepare your Meteor.js project for the big 3.0 release
- Gradually upgrading a Meteor.js project to 3.0
- Meteor 3.0 Migration Guide, from Daniel
- Illustreets Migration Guide, large SaaS migrated to 3.0 & their how-to post
Videos
Migrating apps to Meteor 3.0:
If you have a migration guide, either in video or text format, please share it with us to include here.