Meteor patch update BROKE my build!

Well, this is unfortunate…

I have a a meteor app at 1.6.1.1. Not too old, one would think…Works just fine. Then the system announced a patch update was available to 1.6.1.3. It’s a patch update…shouldn’t break, one would think.

But it did…I run

meteor update --patch

Then, when I build my app, I get this:

=> Errors prevented startup:

While selecting package versions:
error: Potentially incompatible change required to top-level dependency: mongo 1.4.7, was 1.5.0.
Constraints on package “mongo”:

  • mongo@1.4.2 <- top level
  • mongo@~1.4.2 <- top level
  • mongo@1.4.2 <- autoupdate 1.4.0 <- hot-code-push 1.0.4 <- meteor-base 1.3.0
  • mongo@1.3.0 <- accounts-base 1.4.2
  • mongo@1.1.14 <- service-configuration 1.0.11
  • mongo@1.4.2 <- oauth 1.2.3 <- accounts-oauth 1.1.15 <- accounts-facebook 1.3.1
  • mongo@1.3.0 <- reactive-dict 1.2.0 <- session 1.1.7
  • mongo@1.1.2 <- alanning:roles 1.2.16
  • mongo@1.1.7 <- mongo-livedata 1.0.12 <- meteorhacks:aggregate 1.3.0
  • mongo@1.1.10 <- ostrio:files 1.9.6
  • mongo@1.0.4 <- aldeed:collection2-core 2.1.2
  • mongo@1.1.7 <- vsivsi:job-collection 1.4.0

Potentially incompatible change required to top-level dependency: es5-shim 4.7.3, was 4.8.0.
Constraints on package “es5-shim”:

  • es5-shim@4.7.0 <- top level
  • es5-shim@~4.7.0 <- top level
  • es5-shim@4.7.0 <- meteor-base 1.3.0

Potentially incompatible change required to top-level dependency: ecmascript 0.10.9, was 0.11.1.
Constraints on package “ecmascript”:

  • ecmascript@0.10.6 <- top level
  • ecmascript@~0.10.6 <- top level
  • ecmascript@0.10.0 <- webapp 1.5.0 <- accounts-oauth 1.1.15 <- accounts-facebook 1.3.1
  • ecmascript@0.10.0 <- webapp 1.5.0 <- meteor-base 1.3.0
  • ecmascript@0.10.0 <- logging 1.1.20 <- oauth 1.2.3 <- accounts-oauth 1.1.15 <- accounts-facebook 1.3.1
  • ecmascript@0.10.0 <- logging 1.1.20 <- webapp 1.5.0 <- meteor-base 1.3.0
  • ecmascript@0.9.0 <- ejson 1.1.0 <- accounts-base 1.4.2
  • ecmascript@0.10.0 <- base64 1.0.11 <- ejson 1.1.0 <- accounts-base 1.4.2
  • ecmascript@0.10.0 <- routepolicy 1.0.13 <- ddp-server 2.1.2 <- ddp 1.4.0 <- accounts-base 1.4.2
  • ecmascript@0.10.0 <- routepolicy 1.0.13 <- webapp 1.5.0 <- meteor-base 1.3.0
  • ecmascript@0.10.0 <- boilerplate-generator 1.4.0 <- webapp 1.5.0 <- accounts-oauth 1.1.15 <- accounts-facebook 1.3.1
  • ecmascript@0.10.0 <- boilerplate-generator 1.4.0 <- webapp 1.5.0 <- meteor-base 1.3.0
  • ecmascript@0.4.3 <- webapp-hashing 1.0.9 <- webapp 1.5.0 <- accounts-oauth 1.1.15 <- accounts-facebook 1.3.1
  • ecmascript@0.4.3 <- webapp-hashing 1.0.9 <- webapp 1.5.0 <- meteor-base 1.3.0
  • ecmascript@0.10.0 <- ddp-client 2.3.2 <- ddp 1.4.0 <- accounts-base 1.4.2
  • ecmascript@0.10.0 <- check 1.3.1
  • ecmascript@0.10.0 <- random 1.1.0 <- accounts-base 1.4.2
  • ecmascript@0.10.0 <- retry 1.1.0 <- autoupdate 1.4.0 <- hot-code-push 1.0.4 <- meteor-base 1.3.0
  • ecmascript@0.10.0 <- id-map 1.1.0 <- binary-heap 1.0.10 <- mongo 1.4.7
  • ecmascript@0.10.0 <- callback-hook 1.1.0 <- accounts-base 1.4.2
  • ecmascript@0.10.0 <- ddp-common 1.4.0 <- ddp-client 2.3.2 <- ddp 1.4.0 <- accounts-base 1.4.2
  • ecmascript@0.10.0 <- reload 1.2.0 <- ddp-client 2.3.2 <- ddp 1.4.0 <- accounts-base 1.4.2
  • ecmascript@0.10.0 <- reload 1.2.0 <- hot-code-push 1.0.4 <- meteor-base 1.3.0
  • ecmascript@0.10.0 <- reload 1.2.0 <- session 1.1.7
  • ecmascript@0.10.0 <- socket-stream-client 0.1.0 <- ddp-client 2.3.2 <- ddp 1.4.0 <- accounts-base 1.4.2
  • ecmascript@0.10.0 <- diff-sequence 1.1.0 <- ddp-client 2.3.2 <- ddp 1.4.0 <- accounts-base 1.4.2
  • ecmascript@0.10.0 <- diff-sequence 1.1.0 <- minimongo 1.4.4 <- aldeed:collection2-core 2.1.2
  • ecmascript@0.10.0 <- diff-sequence 1.1.0 <- mongo 1.4.7
  • ecmascript@0.10.0 <- mongo-id 1.0.7 <- ddp-client 2.3.2 <- ddp 1.4.0 <- accounts-base 1.4.2
  • ecmascript@0.10.0 <- mongo-id 1.0.7 <- minimongo 1.4.4 <- aldeed:collection2-core 2.1.2
  • ecmascript@0.10.0 <- mongo-id 1.0.7 <- mongo 1.4.7
  • ecmascript@0.10.0 <- ddp-server 2.1.2 <- ddp 1.4.0 <- accounts-base 1.4.2
  • ecmascript@0.9.0 <- minimongo 1.4.4 <- aldeed:collection2-core 2.1.2
  • ecmascript@0.10.0 <- ordered-dict 1.1.0 <- blaze 2.3.2 <- accounts-base 1.4.2
  • ecmascript@0.10.0 <- server-render 0.3.1 <- es5-shim 4.7.3
  • ecmascript@0.10.0 <- shim-common 0.1.0 <- es5-shim 4.7.3
  • ecmascript@0.10.0 <- autoupdate 1.4.0 <- hot-code-push 1.0.4 <- meteor-base 1.3.0
  • ecmascript@0.10.0 <- mongo 1.4.7
  • ecmascript@0.9.0 <- allow-deny 1.1.0 <- mongo 1.4.7
  • ecmascript@0.10.0 <- minifier-css 1.3.1 <- standard-minifier-css 1.4.1
  • ecmascript@0.10.8 <- standard-minifier-js 2.3.4
  • ecmascript@0.9.0 <- shell-server 0.3.1
  • ecmascript@0.10.0 <- accounts-password 1.5.1
  • ecmascript@0.9.0 <- accounts-base 1.4.2
  • ecmascript@0.10.0 <- rate-limit 1.0.9 <- ddp-rate-limiter 1.0.7
  • ecmascript@0.9.0 <- accounts-facebook 1.3.1
  • ecmascript@0.9.0 <- accounts-google 1.3.1
  • ecmascript@0.7.3 <- google-oauth 1.2.5 <- accounts-google 1.3.1
  • ecmascript@0.1.3 <- mdg:validated-method 1.1.0
  • ecmascript@0.1.5 <- themeteorchef:bert 2.1.3
  • ecmascript@0.5.8 <- caching-html-compiler 1.1.2 <- templating-compiler 1.3.3 <- templating 1.3.2 <- accounts-ui-unstyled 1.4.1 <- accounts-ui 1.3.0
  • ecmascript@0.5.8 <- caching-html-compiler 1.1.2 <- templating-compiler 1.3.3 <- templating 1.3.2 <- blaze-html-templates 1.1.2
  • ecmascript@0.9.0 <- caching-compiler 1.1.12 <- caching-html-compiler 1.1.2 <- templating-compiler 1.3.3 <- templating 1.3.2 <- accounts-ui-unstyled 1.4.1 <- accounts-ui 1.3.0
  • ecmascript@0.9.0 <- caching-compiler 1.1.12 <- caching-html-compiler 1.1.2 <- templating-compiler 1.3.3 <- templating 1.3.2 <- blaze-html-templates 1.1.2
  • ecmascript@0.9.0 <- caching-compiler 1.1.12 <- coffeescript 1.0.17 <- nimble:restivus 0.8.12
  • ecmascript@0.9.0 <- caching-compiler 1.1.12 <- fourseven:scss 4.5.4
  • ecmascript@0.5.8 <- templating-tools 1.1.2 <- caching-html-compiler 1.1.2 <- templating-compiler 1.3.3 <- templating 1.3.2 <- accounts-ui-unstyled 1.4.1 <- accounts-ui 1.3.0
  • ecmascript@0.5.8 <- templating-tools 1.1.2 <- caching-html-compiler 1.1.2 <- templating-compiler 1.3.3 <- templating 1.3.2 <- blaze-html-templates 1.1.2
  • ecmascript@0.5.8 <- templating-tools 1.1.2 <- templating-compiler 1.3.3 <- templating 1.3.2 <- blaze-html-templates 1.1.2
  • ecmascript@0.5.8 <- templating-compiler 1.3.3 <- templating 1.3.2 <- accounts-ui-unstyled 1.4.1 <- accounts-ui 1.3.0
  • ecmascript@0.5.8 <- templating-compiler 1.3.3 <- templating 1.3.2 <- blaze-html-templates 1.1.2
  • ecmascript@0.9.0 <- reactive-dict 1.2.0 <- session 1.1.7
  • ecmascript@0.5.8 <- fourseven:scss 4.5.4
  • ecmascript@0.9.0 <- less 2.7.12 <- accounts-ui 1.3.0
  • ecmascript@0.5.7 <- ostrio:files 1.9.6
  • ecmascript@0.4.3 <- coffeescript 1.0.17 <- nimble:restivus 0.8.12
  • ecmascript@0.6.1 <- aldeed:collection2-core 2.1.2
  • ecmascript@0.4.0-beta.11 <- tmeasday:check-npm-versions 0.3.2 <- aldeed:collection2-core 2.1.2
  • ecmascript@0.6.1 <- aldeed:schema-index 2.1.2
  • ecmascript@0.6.1 <- aldeed:schema-deny 2.0.1
  • ecmascript@0.5.7 <- ostrio:cookies 2.2.4 <- ostrio:files 1.9.6
  • ecmascript@0.4.1 <- react-meteor-data 0.2.16

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

This is a PATCH update!!!

Aaargh!!

Running

meteor run --settings ./settings-dev.json --allow-incompatible-update

with the --allow-incompatible-update removes errors, but I don’t trust this thing at all :slight_smile:

A patch update breaking things??

That is strange, it looks like something is forcing to downgrade on the dependencies that are causing the problem. Please check that you don’t have your top level dependencies set for a particular version or if one of your packages isn’t forcing a lower version than the current one, which would be strange given that these are official packages and those are required (for the most part) without a version constrain.

The --allow-incompatible-update will work here, but you want to update those packages up, not down.

Here is the output of meteor list before the patch update:

~/W/g/gm-server ❯❯❯ meteor list                                                                                                                                                         feature/bug-fixes ✱
accounts-base                   1.4.2  A user account system
accounts-facebook               1.3.1  Login service for Facebook accounts
accounts-google                 1.3.1  Login service for Google accounts
accounts-password               1.5.0* Password support for accounts
accounts-ui                     1.3.0  Simple templates to add login widgets to an app
alanning:roles                  1.2.16  Authorization package for Meteor
aldeed:collection2-core         2.1.2  Core package for aldeed:collection2
aldeed:schema-deny              2.0.1* Deny inserting or updating certain properties through schema options
aldeed:schema-index             2.1.2* Control some MongoDB indexing with schema options
audit-argument-checks           1.0.7  Try to detect inadequate input sanitization
blaze-html-templates            1.1.2  Compile HTML templates into reactive UI with Meteor Blaze
check                           1.3.0* Check whether a value matches a pattern
ddp-rate-limiter                1.0.7  The DDPRateLimiter allows users to add rate limits to DDP methods and subscriptions.
dynamic-import                  0.3.0* Runtime support for Meteor 1.5 dynamic import(...) syntax
ecmascript                      0.10.6* Compiler plugin that supports ES2015+ in all .js files
email                           1.2.3  Send email messages
es5-shim                        4.7.3* Shims and polyfills to improve ECMAScript 5 support
facebook-config-ui              1.0.1  Blaze configuration templates for Facebook OAuth.
fourseven:scss                  4.5.4* Style with attitude. Sass and SCSS support for Meteor.js.
google-config-ui                1.0.0  Blaze configuration templates for Google OAuth.
gwendall:auth-client-callbacks  0.1.0  Adds client-side onLogin and onLogout methods
mdg:validated-method            1.1.0  A simple wrapper for Meteor.methods
meteor-base                     1.3.0* Packages that every Meteor app needs
meteorhacks:aggregate           1.3.0  Proper MongoDB aggregations support for Meteor
mobile-experience               1.0.5  Packages for a great mobile user experience
momentjs:moment                 2.20.1* Moment.js (official): parse, validate, manipulate, and display dates - official Meteor packaging
mongo                           1.4.3* Adaptor for using MongoDB and Minimongo over DDP
nimble:restivus                 0.8.12  Create authenticated REST APIs in Meteor 0.9+ via HTTP/HTTPS. Setup CRUD endpoints for Collections.
ostrio:files                    1.9.6* File upload via DDP/HTTP to server, 3rd party storage support: AWS S3, GridFS, DropBox and others
react-meteor-data               0.2.16  React higher-order component for reactively tracking Meteor data
reactive-var                    1.0.11  Reactive variable
service-configuration           1.0.11  Manage the configuration for third-party services
session                         1.1.7  Session variable
shell-server                    0.3.1  Server-side component of the `meteor shell` command.
splendido:accounts-meld         1.3.1  Meteor package to link/meld user accounts registered with the same (verified) email address.
standard-minifier-css           1.4.0* Standard css minifier used with Meteor apps by default.
standard-minifier-js            2.3.1* Standard javascript minifiers used with Meteor apps by default.
themeteorchef:bert              2.1.3  A client side, multi-style alerts system for Meteor.
tracker                         1.1.3* Dependency tracker to allow reactive callbacks
twbs:bootstrap                  3.3.6  The most popular front-end framework for developing responsive, mobile first projects on the web.
vsivsi:job-collection           1.4.0* A persistent and reactive job queue for Meteor, supporting distributed workers that can run anywhere

I hit the same issue - also updating from meteor 1.6.1.1: Meteor 1.6.1.3 patch update - Potentially incompatible change required to top-level dependency errors?

The solution for me was to downgrade back to meteor 1.6.1.1 and then update ONLY meteor core:
i.e.
meteor update --release 1.6.1.1

meteor update --release 1.6.1.3

This may help you.

I’ve logged an issue for it in github: https://github.com/meteor/meteor/issues/10008

3 Likes

Indeed so, this seems to work! Thanks!

1 Like