Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with meteor 3 #10

Open
gustawdaniel opened this issue Feb 4, 2024 · 0 comments
Open

Compatibility with meteor 3 #10

gustawdaniel opened this issue Feb 4, 2024 · 0 comments

Comments

@gustawdaniel
Copy link

After command:

meteor update --release 3.0-beta.0

in the existing Meteor 2 project I see an error:

Conflict: Constraint montiapm:[email protected] is not satisfied by montiapm:agent 3.0.0-beta.4.
Constraints on package "montiapm:agent":
* montiapm:[email protected] <- montiapm:profiler 1.6.3

in package.js of this package, I see

function configurePackage(api) {
  api.versionsFrom('[email protected]');
  api.use('check');
  api.use('random');
  api.export('MontiProfiler');
  api.use('montiapm:[email protected]');
  api.imply('montiapm:[email protected]');
  api.use('montiapm:[email protected]');

  api.addFiles('lib/server.js', 'server');
  api.addFiles('lib/client.js', 'client');
}

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant