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

Improve error when local package has inconsistent dependency constraints #13111

Open
wants to merge 1 commit into
base: release-3.0
Choose a base branch
from

Conversation

zodern
Copy link
Member

@zodern zodern commented Apr 26, 2024

While updating a package for Meteor 3, I started seeing this error:

Error: inconsistent dependency constraint across unibuilds?

It was caused by the package having different constraints on montiapm:agent:

  api.use('montiapm:agent@2.44.2||3.0.0-beta.4');
  api.imply('montiapm:agent@2.44.2');

The error was not very helpful in figuring this out. The code is able to show a much better message, but it was disabled when running for local packages. This PR re-enables it:

=> Errors while initializing project:         
                                              
While reading package from `...`:
error: The version constraint for a dependency must be the same at every place it is mentioned in a
package. 'montiapm:agent' is constrained both as 2.44.2||3.0.0-beta.4 and 2.44.2. Change them to match.

Copy link

netlify bot commented Apr 26, 2024

Deploy Preview for v3-migration-docs canceled.

Name Link
🔨 Latest commit 55f5f0a
🔍 Latest deploy log https://app.netlify.com/sites/v3-migration-docs/deploys/662b1484dbf2fc0008574e81

Copy link

netlify bot commented Apr 26, 2024

Deploy Preview for v3-meteor-api-docs canceled.

Name Link
🔨 Latest commit 55f5f0a
🔍 Latest deploy log https://app.netlify.com/sites/v3-meteor-api-docs/deploys/662b1484d9bf680008eb860e

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

Successfully merging this pull request may close these issues.

None yet

2 participants