Top-level dependency error - don't know why?


#1

I’m trying to update a package that I’ve created, and now am working on locally. Now I’m getting this error when starting up!

=> Errors prevented startup:

   While selecting package versions:
   error: Potentially incompatible change required to top-level
   dependency: plusmore:pickadate-default-theme 3.3.1, was 3.5.5.
   Constraints on package "plusmore:pickadate-default-theme":

   To allow potentially incompatible changes to top-level
   dependencies, you must pass --allow-incompatible-update on the
   command line.

=> Your application has errors. Waiting for file change.

The package only has dependencies on jquery so I’m not sure what’s going on. It’s an important fix that I need to make to deal with a bug in ios that I’d like to get out ASAP!

Here’s the package.js

Package.describe({
  summary: "Default theme for the mobile-friendly, responsive, and lightweight jQuery date & time input picker.",
  version: "3.5.5",
  // Optional.  Default is package directory name.
  name: "plusmore:pickadate-default-theme",
  // Optional github URL to your source repository.
  git: "https://github.com/PlusMore/meteor-pickadate-default-theme.git"
});

Package.on_use(function (api, where) {
  api.versionsFrom(['METEOR@0.9.0', 'METEOR@1.0', 'METEOR@1.1']);
  api.use('jquery', 'client');
  api.add_files([
    'js/picker.js',
    'js/picker.date.js',
    'js/picker.time.js',
    'js/legacy.js',
    'css/default.css',
    'css/default.date.css',
    'css/default.time.css',
  ], 'client');
})

I tried it with jquery removed as well, seems how it was the only dependency and I was curious, but same results.


We need better support for working on packages
#2

You may have specified your package version in your app (in .meteor/packages).
Removing the version will help you.