Error on upgrading on Meteor 1.6

Hello Guys,

Looks like the 1.6 version of meteor has a huge issue, we tried to solve it but it takes us couple of days and still not fixed. After we upgrade to 1.6 version we got these errors below:

While loading plugin `bower` from package `mquandalle:bower`:
   module.js:513:15: Cannot find module 'internal/util/types'
   at Function.Module._resolveFilename (module.js:513:15)
   at Function.Module._load (module.js:463:25)
   at Module.require (module.js:556:17)
   at require (internal/module.js:11:18)
   at evalmachine.<anonymous>:31:26
   at Object.<anonymous>
   (/home/ubuntu/.meteor/packages/mquandalle_bower/.1.5.2_1.jdi8qq.k89u++os+web.browser+web.cordova/plugin.bower.os/npm/node_modules/meteor/bower/bower/node_modules/bower/node_modules/graceful-fs/fs.js:11:1)
   at Module._compile (module.js:612:30)
   at Object.Module._extensions..js (module.js:623:10)
   at Module.load (module.js:531:32)
   at Module.Mp.load (/tools/tool-env/install-runtime.js:16:29)
   at Module.Mp.load
   (/home/ubuntu/.meteor/packages/fourseven_scss/.3.13.0.1m2xsy0.tevw++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/babel-compiler/node_modules/reify/node/runtime.js:16:23)
   at tryModuleLoad (module.js:494:12)
   at Function.Module._load (module.js:486:3)
   at Module.require (module.js:556:17)
   at require (internal/module.js:11:18)
   at Object.<anonymous>
   (/home/ubuntu/.meteor/packages/mquandalle_bower/.1.5.2_1.jdi8qq.k89u++os+web.browser+web.cordova/plugin.bower.os/npm/node_modules/meteor/bower/bower/node_modules/bower/node_modules/graceful-fs/graceful-fs.js:3:27)
   at Module._compile (module.js:612:30)
   at Object.Module._extensions..js (module.js:623:10)
   at Module.load (module.js:531:32)
   at Module.Mp.load (/tools/tool-env/install-runtime.js:16:29)
   at Module.Mp.load
   (/home/ubuntu/.meteor/packages/fourseven_scss/.3.13.0.1m2xsy0.tevw++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/babel-compiler/node_modules/reify/node/runtime.js:16:23)
   at tryModuleLoad (module.js:494:12)
   at Function.Module._load (module.js:486:3)
   at Module.require (module.js:556:17)
   at require (internal/module.js:11:18)
   at Object.<anonymous>
   (/home/ubuntu/.meteor/packages/mquandalle_bower/.1.5.2_1.jdi8qq.k89u++os+web.browser+web.cordova/plugin.bower.os/npm/node_modules/meteor/bower/bower/node_modules/bower/node_modules/configstore/index.js:4:10)
   at Module._compile (module.js:612:30)
   at Object.Module._extensions..js (module.js:623:10)
   at Module.load (module.js:531:32)
   at Module.Mp.load (/tools/tool-env/install-runtime.js:16:29)
   at Module.Mp.load
   (/home/ubuntu/.meteor/packages/fourseven_scss/.3.13.0.1m2xsy0.tevw++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/babel-compiler/node_modules/reify/node/runtime.js:16:23)
   at tryModuleLoad (module.js:494:12)
   at Function.Module._load (module.js:486:3)
   at Module.require (module.js:556:17)
   at require (internal/module.js:11:18)
   at Object.<anonymous>
   (/home/ubuntu/.meteor/packages/mquandalle_bower/.1.5.2_1.jdi8qq.k89u++os+web.browser+web.cordova/plugin.bower.os/npm/node_modules/meteor/bower/bower/node_modules/bower/lib/config.js:4:19)
   at Module._compile (module.js:612:30)
   at Object.Module._extensions..js (module.js:623:10)
   at Module.load (module.js:531:32)
   at Module.Mp.load (/tools/tool-env/install-runtime.js:16:29)
   at Module.Mp.load
   (/home/ubuntu/.meteor/packages/fourseven_scss/.3.13.0.1m2xsy0.tevw++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/babel-compiler/node_modules/reify/node/runtime.js:16:23)
   at tryModuleLoad (module.js:494:12)
   at Function.Module._load (module.js:486:3)
   at Module.require (module.js:556:17)
   at require (internal/module.js:11:18)
   at Object.<anonymous>
   (/home/ubuntu/.meteor/packages/mquandalle_bower/.1.5.2_1.jdi8qq.k89u++os+web.browser+web.cordova/plugin.bower.os/npm/node_modules/meteor/bower/bower/node_modules/bower/lib/index.js:40:13)
   at Module._compile (module.js:612:30)
   at Object.Module._extensions..js (module.js:623:10)
   at Module.load (module.js:531:32)
   at Module.Mp.load (/tools/tool-env/install-runtime.js:16:29)
   at Module.Mp.load
   (/home/ubuntu/.meteor/packages/fourseven_scss/.3.13.0.1m2xsy0.tevw++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/babel-compiler/node_modules/reify/node/runtime.js:16:23)
   at tryModuleLoad (module.js:494:12)
   at Function.Module._load (module.js:486:3)
   at Module.require (module.js:556:17)
   at require (internal/module.js:11:18)
   at Object.require (/tools/isobuild/bundler.js:1906:22)
   at packages/bower/plugin/bower.js:1:1
   at <runJavaScript-26>:38:4
   at <runJavaScript-26>:326:3

We already tried to update all npm packages but still no luck. :frowning:

Here’s the full list of add-ons we have.

accounts-password         1.5.0  Password support for accounts
aldeed:collection2        2.10.0  Automatic validation of insert and update operations on the client and server.
anonyfox:mmenu            0.0.1  Wrapper for http://mmenu.frebsite.nl/
base64                    1.0.10  Base64 encoding and decoding
blaze-html-templates      1.1.2  Compile HTML templates into reactive UI with Meteor Blaze
check                     1.2.5  Check whether a value matches a pattern
chfritz:filedrop          0.0.5  An easy to use file drag&drop element with hooks.
cultofcoders:redis-oplog  1.2.4_1* Replacement for Meteor's MongoDB oplog implementation
disable-oplog             1.0.7  Disables oplog tailing
dynamic-import            0.2.1  Runtime support for Meteor 1.5 dynamic import(...) syntax
ecmascript                0.9.0  Compiler plugin that supports ES2015+ in all .js files
edgee:slingshot           0.7.1  Directly post files to cloud storage services, such as AWS-S3.
email                     1.2.3  Send email messages
es5-shim                  4.6.15  Shims and polyfills to improve ECMAScript 5 support
fourseven:scss            3.13.0* Style with attitude. Sass and SCSS support for Meteor.js.
gwendall:body-events      0.1.6  Get Template.body.events() working
http                      1.3.0  Make HTTP calls to remote servers
iron:router               1.1.2  Routing specifically designed for Meteor
jquery                    1.11.10  Manipulate the DOM using CSS selectors
materialize:materialize   0.99.0* Materialize (official): A modern responsive front-end framework based on Material Design
meteor-base               1.2.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.19.1* Moment.js (official): parse, validate, manipulate, and display dates - official Meteor ...
mongo                     1.3.0  Adaptor for using MongoDB and Minimongo over DDP
mrt:googlemaps            0.1.1  Google maps repackaged for Meteor
mrt:inputmask             1.0.0-2  jQuery inputmask plugin
mrt:jquery-ui             1.9.2  jQuery-UI - jQuery user interface
mrt:meteor-nodemailer     0.2.0  Meteor wrapper for Nodemailer
mrt:moment-timezone       0.2.1  Timezone support for moment.js, packaged for Meteor. See http://momentjs.com/timezone.
ovcharik:alertifyjs       1.6.1  A javascript framework for developing pretty browser dialogs and notifications.
peerlibrary:aws-sdk       2.4.9_1  SDK for AWS services including Amazon S3, Amazon EC2, DynamoDB, and Amazon SWF
react-template-helper     0.2.9  Use React components in native Meteor templates
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.0  Server-side component of the `meteor shell` command.
simple:rest               1.1.1  The easiest way to add a REST API to your Meteor app
standard-minifier-css     1.3.5  Standard css minifier used with Meteor apps by default.
standard-minifier-js      2.2.1  Standard javascript minifiers used with Meteor apps by default.
teamon:tinymce            4.5.4  TinyMCE editor
tracker                   1.1.3  Dependency tracker to allow reactive callbacks

Just in case someone encountered the same issue please share the link on how you solved it.

Thanks

Pretty much the same problem here also.

   While loading plugin `bower` from package `mquandalle:bower`:
   module.js:513:15: Cannot find module 'internal/util/types'
   at Function.Module._resolveFilename (module.js:513:15)
   at Function.Module._load (module.js:463:25)
   at Module.require (module.js:556:17)
   at require (internal/module.js:11:18)
   at evalmachine.<anonymous>:31:26
   at Object.<anonymous>
   (/Users/arve/.meteor/packages/mquandalle_bower/.1.5.2_1.cg99pc.dgxv9++os+web.browser+web.cordova/plugin.bower.os/npm/node_modules/meteor/bower/bower/node_modules/bower/node_modules/graceful-fs/fs.js:11:1)
   at Module._compile (module.js:612:30)
   at Object.Module._extensions..js (module.js:623:10)
   at Module.load (module.js:531:32)
   at Module.Mp.load (/tools/tool-env/install-runtime.js:16:29)
   at tryModuleLoad (module.js:494:12)
   at Function.Module._load (module.js:486:3)
   at Module.require (module.js:556:17)
   at require (internal/module.js:11:18)
   at Object.<anonymous>
   (/Users/arve/.meteor/packages/mquandalle_bower/.1.5.2_1.cg99pc.dgxv9++os+web.browser+web.cordova/plugin.bower.os/npm/node_modules/meteor/bower/bower/node_modules/bower/node_modules/graceful-fs/graceful-fs.js:3:27)
   at Module._compile (module.js:612:30)
   at Object.Module._extensions..js (module.js:623:10)
   at Module.load (module.js:531:32)
   at Module.Mp.load (/tools/tool-env/install-runtime.js:16:29)
   at tryModuleLoad (module.js:494:12)
   at Function.Module._load (module.js:486:3)
   at Module.require (module.js:556:17)
   at require (internal/module.js:11:18)
   at Object.<anonymous>
   (/Users/arve/.meteor/packages/mquandalle_bower/.1.5.2_1.cg99pc.dgxv9++os+web.browser+web.cordova/plugin.bower.os/npm/node_modules/meteor/bower/bower/node_modules/bower/node_modules/configstore/index.js:4:10)
   at Module._compile (module.js:612:30)
   at Object.Module._extensions..js (module.js:623:10)
   at Module.load (module.js:531:32)
   at Module.Mp.load (/tools/tool-env/install-runtime.js:16:29)
   at tryModuleLoad (module.js:494:12)
   at Function.Module._load (module.js:486:3)
   at Module.require (module.js:556:17)
   at require (internal/module.js:11:18)
   at Object.<anonymous>
   (/Users/arve/.meteor/packages/mquandalle_bower/.1.5.2_1.cg99pc.dgxv9++os+web.browser+web.cordova/plugin.bower.os/npm/node_modules/meteor/bower/bower/node_modules/bower/lib/config.js:4:19)
   at Module._compile (module.js:612:30)
   at Object.Module._extensions..js (module.js:623:10)
   at Module.load (module.js:531:32)
   at Module.Mp.load (/tools/tool-env/install-runtime.js:16:29)
   at tryModuleLoad (module.js:494:12)
   at Function.Module._load (module.js:486:3)
   at Module.require (module.js:556:17)
   at require (internal/module.js:11:18)
   at Object.<anonymous>
   (/Users/arve/.meteor/packages/mquandalle_bower/.1.5.2_1.cg99pc.dgxv9++os+web.browser+web.cordova/plugin.bower.os/npm/node_modules/meteor/bower/bower/node_modules/bower/lib/index.js:40:13)
   at Module._compile (module.js:612:30)
   at Object.Module._extensions..js (module.js:623:10)
   at Module.load (module.js:531:32)
   at Module.Mp.load (/tools/tool-env/install-runtime.js:16:29)
   at tryModuleLoad (module.js:494:12)
   at Function.Module._load (module.js:486:3)
   at Module.require (module.js:556:17)
   at require (internal/module.js:11:18)
   at Object.require (/tools/isobuild/bundler.js:1906:22)
   at packages/bower/plugin/bower.js:1:1
   at <runJavaScript-27>:38:4
   at <runJavaScript-27>:326:3

Whats interesting is that if I change a file and save, Meteor rebuilds and runs…

=> Meteor server restarted
=> Started your app.

=> App running at: http://localhost:3000/

Meteor list:

accounts-base            1.4.0  A user account system
accounts-password        1.5.0  Password support for accounts
alanning:roles           1.2.16  Authorization package for Meteor
aldeed:collection2-core  2.0.1* Core package for aldeed:collection2
anonyfox:mmenu           0.0.1  Wrapper for http://mmenu.frebsite.nl/
audit-argument-checks    1.0.7  Try to detect inadequate input sanitization
base64                   1.0.10  Base64 encoding and decoding
browser-policy           1.1.0  Configure security policies enforced by the browser
check                    1.2.5  Check whether a value matches a pattern
dburles:factory          1.1.0  Factories for Meteor
ddp-rate-limiter         1.0.7  The DDPRateLimiter allows users to add rate limits to DDP methods and subscriptions.
dynamic-import           0.2.0* Runtime support for Meteor 1.5 dynamic import(...) syntax
ecmascript               0.9.0  Compiler plugin that supports ES2015+ in all .js files
edgee:slingshot          0.7.1  Directly post files to cloud storage services, such as AWS-S3.
email                    1.2.3  Send email messages
es5-shim                 4.6.15  Shims and polyfills to improve ECMAScript 5 support
fourseven:scss           4.5.4  Style with attitude. Sass and SCSS support for Meteor.js.
http                     1.3.0  Make HTTP calls to remote servers
mdg:validated-method     1.1.0  A simple wrapper for Meteor.methods
meteor-base              1.2.0  Packages that every Meteor app needs
mobile-experience        1.0.5  Packages for a great mobile user experience
momentjs:moment          2.19.1* Moment.js (official): parse, validate, manipulate, and display dates - official Meteor packaging
mongo                    1.3.0  Adaptor for using MongoDB and Minimongo over DDP
practicalmeteor:mocha    2.4.5_6  Write package tests with mocha and run them in the browser or from the command line with spacejam.
reactive-var             1.0.11  Reactive variable
rzymek:moment-locale-nb  2.14.1  Moment.js nb locale. Companion package for rzymek:moment
session                  1.1.7  Session variable
shell-server             0.3.0  Server-side component of the `meteor shell` command.
standard-minifier-css    1.3.5  Standard css minifier used with Meteor apps by default.
standard-minifier-js     2.2.1  Standard javascript minifiers used with Meteor apps by default.
static-html              1.2.2  Define static page content in .html files
themeteorchef:bert       2.1.3  A client side, multi-style alerts system for Meteor.
tracker                  1.1.3  Dependency tracker to allow reactive callbacks
xolvio:backdoor          0.2.1  Runs arbitrary code on server
xolvio:cleaner           0.3.1  Gives you methods to clear your Mongo database and collections for testing purposes

Any help would be much appreciated!

I fixed it like this:

Obviously the mquandalle:bower is the issue, and it’s not supported any more, so lets get rid of it.

I found the package in the .meteor folder in my user folder, and deleted it. When I restarted meteor, it reinstalled the package, so I guess there is a dependancy to one of the packages I installed using meteor npm.

I found this

for p in meteor list | grep '^[a-z]' | awk '{ print $1"@"$2 }'; do echo “$p”; meteor show “$p” | grep -E ‘^ [a-z]’; echo; done

to list the dependancies for my package list in Meteor. In my case it was anonyfox:mmenu, removed that and all is good.