How to resolve dependency issues on package publish

It has been a while since I have published a package. Im trying to do so for Meteor 3.0+ and im having issues with deps.

=> Errors while initializing project:         
                                              
While selecting package versions:
error: Conflict: Constraint typescript@5.4.3 is not satisfied by typescript 4.9.5.
Constraints on package "typescript":
* typescript@~4.9.5 <- top level
* typescript@5.4.3 <- pmogollons:nova 1.0.0
* typescript@4.9.5 <- logging 1.3.4 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0

Conflict: Constraint ecmascript@0.16.9 is not satisfied by ecmascript 0.16.8.
Constraints on package "ecmascript":
* ecmascript@~0.16.8 <- top level
* ecmascript@0.16.9 <- pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- check 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- check 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- check 1.4.1 <- pmogollons:nova 1.0.0
* ecmascript@0.16.3 <- ejson 1.1.3 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.3 <- ejson 1.1.3 <- check 1.4.1 <- pmogollons:nova 1.0.0
* ecmascript@0.12.0 <- base64 1.0.12 <- ejson 1.1.3 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.12.0 <- base64 1.0.12 <- ejson 1.1.3 <- check 1.4.1 <- pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- minimongo 1.9.4 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- minimongo 1.9.4 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.3 <- diff-sequence 1.1.2 <- ddp-client 2.6.2 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.3 <- diff-sequence 1.1.2 <- ddp-client 2.6.2 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.3 <- diff-sequence 1.1.2 <- minimongo 1.9.4 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.3 <- diff-sequence 1.1.2 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.15.1 <- id-map 1.1.1 <- binary-heap 1.0.11 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.15.1 <- mongo-id 1.0.8 <- ddp-client 2.6.2 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.15.1 <- mongo-id 1.0.8 <- ddp-client 2.6.2 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.15.1 <- mongo-id 1.0.8 <- minimongo 1.9.4 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.15.1 <- mongo-id 1.0.8 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.3 <- random 1.2.1 <- ddp-client 2.6.2 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.3 <- random 1.2.1 <- ddp-client 2.6.2 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.3 <- random 1.2.1 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.10.0 <- ordered-dict 1.1.0 <- minimongo 1.9.4 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.10.0 <- ordered-dict 1.1.0 <- minimongo 1.9.4 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- tracker 1.3.3 <- ddp-client 2.6.2 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- tracker 1.3.3 <- ddp-client 2.6.2 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- tracker 1.3.3 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.2 <- mongo-decimal 0.1.3 <- minimongo 1.9.4 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.2 <- mongo-decimal 0.1.3 <- minimongo 1.9.4 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.2 <- mongo-decimal 0.1.3 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- ddp-client 2.6.2 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- ddp-client 2.6.2 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.10.0 <- retry 1.1.0 <- ddp-client 2.6.2 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.10.0 <- retry 1.1.0 <- ddp-client 2.6.2 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.7 <- callback-hook 1.5.1 <- ddp-client 2.6.2 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.7 <- callback-hook 1.5.1 <- ddp-client 2.6.2 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.7 <- callback-hook 1.5.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- ddp-common 1.4.1 <- ddp-client 2.6.2 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- ddp-common 1.4.1 <- ddp-client 2.6.2 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.14.4 <- reload 1.3.1 <- ddp-client 2.6.2 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.14.4 <- reload 1.3.1 <- ddp-client 2.6.2 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- socket-stream-client 0.5.2 <- ddp-client 2.6.2 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- socket-stream-client 0.5.2 <- ddp-client 2.6.2 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- ddp-server 2.7.1 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- ddp-server 2.7.1 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- webapp 1.13.8 <- ddp-server 2.7.1 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- webapp 1.13.8 <- ddp-server 2.7.1 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- webapp 1.13.8 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- logging 1.3.4 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.15.2 <- routepolicy 1.1.1 <- ddp-server 2.7.1 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.15.2 <- routepolicy 1.1.1 <- ddp-server 2.7.1 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.15.2 <- routepolicy 1.1.1 <- webapp 1.13.8 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- boilerplate-generator 1.7.2 <- webapp 1.13.8 <- ddp-server 2.7.1 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <-
local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- boilerplate-generator 1.7.2 <- webapp 1.13.8 <- ddp-server 2.7.1 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- boilerplate-generator 1.7.2 <- webapp 1.13.8 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.3 <- webapp-hashing 1.1.1 <- webapp 1.13.8 <- ddp-server 2.7.1 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <-
local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.3 <- webapp-hashing 1.1.1 <- webapp 1.13.8 <- ddp-server 2.7.1 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.3 <- webapp-hashing 1.1.1 <- webapp 1.13.8 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.12.0 <- binary-heap 1.0.11 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- ddp-rate-limiter 1.2.1 <- ddp-server 2.7.1 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- ddp-rate-limiter 1.2.1 <- ddp-server 2.7.1 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.8 <- ddp-rate-limiter 1.2.1 <- pmogollons:nova 1.0.0
* ecmascript@0.16.7 <- rate-limit 1.1.1 <- ddp-rate-limiter 1.2.1 <- ddp-server 2.7.1 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <-
local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.7 <- rate-limit 1.1.1 <- ddp-rate-limiter 1.2.1 <- ddp-server 2.7.1 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.16.7 <- rate-limit 1.1.1 <- ddp-rate-limiter 1.2.1 <- pmogollons:nova 1.0.0
* ecmascript@0.3.0 <- meteortesting:mocha 0.4.4 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.4.1 <- practicalmeteor:mocha-core 1.0.1 <- meteortesting:mocha 0.4.4 <- local-test:pmogollons:nova 1.0.0
* ecmascript@0.3.0 <- meteortesting:browser-tests 0.1.2 <- meteortesting:mocha 0.4.4 <- local-test:pmogollons:nova 1.0.0

Conflict: Constraint check@1.4.2 is not satisfied by check 1.4.1.
Constraints on package "check":
* check@~1.4.1 <- top level
* check@1.4.2 <- pmogollons:nova 1.0.0
* check@1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* check@1.3.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* check@1.4.1 <- ddp-client 2.6.2 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* check@1.4.1 <- ddp-client 2.6.2 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* check@1.4.1 <- ddp-common 1.4.1 <- ddp-client 2.6.2 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* check@1.4.1 <- ddp-common 1.4.1 <- ddp-client 2.6.2 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* check@1.4.1 <- ddp-server 2.7.1 <- ddp 1.4.1 <- allow-deny 1.1.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0
* check@1.4.1 <- ddp-server 2.7.1 <- ddp 1.4.1 <- mongo 1.16.10 <- local-test:pmogollons:nova 1.0.0

Conflict: Constraint mongo@2.0.0 is not satisfied by mongo 1.16.10.
Constraints on package "mongo":
* mongo@~1.16.10 <- top level
* mongo@2.0.0 <- pmogollons:nova 1.0.0

This is my package.js

Package.describe({
  name: "pmogollons:nova",
  version: "1.0.0",
  summary: "Grapher-like query layer on top of nova and meteor",
  git: "https://github.com/pmogollons/grapher-nova",
  documentation: "README.md",
});

const npmPackages = {
  "lodash": "4.17.21",
  "mongodb": "4.17.0",
  "@bluelibs/nova": "1.6.0",
};

Package.onUse(function (api) {
  Npm.depends(npmPackages);

  api.versionsFrom(["3.0"]);

  const packages = [
    "typescript",
    "ecmascript",
    "check",
    "mongo",
    "zodern:types",
    "ddp-rate-limiter",
  ];

  api.use(packages);

  api.mainModule("main.client.js", "client");
  api.mainModule("main.server.js", "server");
});

Package.onTest(function (api) {
  api.use("pmogollons:nova");

  Npm.depends({
    ...npmPackages,
    chai: "4.3.4",
  });

  const packages = [
    "random",
    "ecmascript",
    "typescript",
    "mongo",
  ];

  api.use(packages);
  api.use("tracker");

  api.use(["meteortesting:mocha"]);
});

Any hints would be appreciated.

Solved by using --release 3.0.2 on the publish command.

1 Like

It will probably be solved when the Meteor 3 becomes the recommended version. It should be soon on 3.0.2