Skip to content

Compatibility with meteor 3 #10

@gustawdaniel

Description

@gustawdaniel

After command:

meteor update --release 3.0-beta.0

in the existing Meteor 2 project I see an error:

error: Conflict: Constraint [email protected] is not satisfied by mongo 2.0.0-beta300.0.
[email protected] <- sakulstra:aggregate 1.4.4

in package.js of this package, I see

function configurePackage(api) {
  api.versionsFrom('METEOR@1');
  api.use(['mongo'], ['server']);

  // common before
  api.addFiles(['index.js'], ['server']);
}

but the proposed package should contain

Package.onUse((api) => {
  api.versionsFrom(['1.10', '2.3', '3.0-beta.0']);
  //                               ^^^^^^^ for testing your package with meteor 3.0

  api.versionsFrom(['1.10', '2.3', '3.0']);
  //                              ^^^^^^^ for meteor 3.0

according to

https://guide.meteor.com/3.0-migration#How-do-I-migrate-my-package-to-be-compatible-with-Meteor-3-0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions