I just ran meteor update and now babel is broken

I ran meteor update and now I’m getting tons of errors:

modules-runtime.js?hash=ab7e8d3…:139Uncaught Error: Cannot find module 'babel-runtime/helpers/classCallCheck'(…)require.resolve @ modules-runtime.js?hash=ab7e8d3…:139Module.resolve @ modules-runtime.js?hash=ab7e8d3…:91Mp.import @ modules.js?hash=f2fe5b9…:381meteorInstall.node_modules.meteor.accounts-base.accounts_client.js @ accounts-base.js?hash=c7424d0…:78fileEvaluate @ modules-runtime.js?hash=ab7e8d3…:191require @ modules-runtime.js?hash=ab7e8d3…:116Mp.import @ modules.js?hash=f2fe5b9…:390meteorInstall.node_modules.meteor.accounts-base.client_main.js @ client_main.js:1fileEvaluate @ modules-runtime.js?hash=ab7e8d3…:191require @ modules-runtime.js?hash=ab7e8d3…:116(anonymous function) @ accounts-base.js?hash=c7424d0…:1274(anonymous function) @ accounts-base.js?hash=c7424d0…:1285
accounts-password.js?hash=993cf22…:17Uncaught TypeError: Cannot read property 'Accounts' of undefined(…)(anonymous function) @ accounts-password.js?hash=993cf22…:17(anonymous function) @ accounts-password.js?hash=993cf22…:316
service-configuration.js?hash=331fe14…:17 Uncaught TypeError: Cannot read property 'Accounts' of undefined(…)(anonymous function) @ service-configuration.js?hash=331fe14…:17(anonymous function) @ service-configuration.js?hash=331fe14…:77
modules-runtime.js?hash=ab7e8d3…:139Uncaught Error: Cannot find module 'babel-runtime/helpers/typeof'(…)require.resolve @ modules-runtime.js?hash=ab7e8d3…:139Module.resolve @ modules-runtime.js?hash=ab7e8d3…:91Mp.import @ modules.js?hash=f2fe5b9…:381meteorInstall.node_modules.meteor.reactive-dict.reactive-dict.js @ reactive-dict.js?hash=ce8d9b8…:41fileEvaluate @ modules-runtime.js?hash=ab7e8d3…:191require @ modules-runtime.js?hash=ab7e8d3…:116(anonymous function) @ reactive-dict.js?hash=ce8d9b8…:363(anonymous function) @ reactive-dict.js?hash=ce8d9b8…:375
session.js?hash=9ac4519…:18 Uncaught TypeError: Cannot read property 'ReactiveDict' of undefined(…)(anonymous function) @ session.js?hash=9ac4519…:18(anonymous function) @ session.js?hash=9ac4519…:98
accounts-ui-unstyled.js?hash=b5e176d…:19 Uncaught TypeError: Cannot read property 'ServiceConfiguration' of undefined(…)(anonymous function) @ accounts-ui-unstyled.js?hash=b5e176d…:19(anonymous function) @ accounts-ui-unstyled.js?hash=b5e176d…:2084
accounts-ui.js?hash=b05356a…:17 Uncaught TypeError: Cannot read property 'Accounts' of undefined(…)(anonymous function) @ accounts-ui.js?hash=b05356a…:17(anonymous function) @ accounts-ui.js?hash=b05356a…:25
aldeed_autoform.js?hash=bc39be6…:31 Uncaught TypeError: Cannot read property 'ReactiveDict' of undefined(…)(anonymous function) @ aldeed_autoform.js?hash=bc39be6…:31(anonymous function) @ aldeed_autoform.js?hash=bc39be6…:10946
iron_controller.js?hash=be89bb8…:20 Uncaught TypeError: Cannot read property 'ReactiveDict' of undefined(…)(anonymous function) @ iron_controller.js?hash=be89bb8…:20(anonymous function) @ iron_controller.js?hash=be89bb8…:469
iron_router.js?hash=238ea12…:99 Uncaught TypeError: Cannot read property 'extend' of undefined(…)(anonymous function) @ iron_router.js?hash=238ea12…:99(anonymous function) @ iron_router.js?hash=238ea12…:285(anonymous function) @ iron_router.js?hash=238ea12…:1941
raix_handlebar-helpers.js?hash=d449549…:20 Uncaught TypeError: Cannot read property 'Session' of undefined(…)(anonymous function) @ raix_handlebar-helpers.js?hash=d449549…:20(anonymous function) @ raix_handlebar-helpers.js?hash=d449549…:280
yogiben_autoform-modals.js?hash=b7c0728…:20Uncaught TypeError: Cannot read property 'Session' of undefined(…)(anonymous function) @ yogiben_autoform-modals.js?hash=b7c0728…:20(anonymous function) @ modals.coffee:124
alethes_pages.js?hash=134b9c6…:29Uncaught TypeError: Cannot read property 'Session' of undefined(…)(anonymous function) @ alethes_pages.js?hash=134b9c6…:29(anonymous function) @ controllers.coffee:77
comerc_autoform-typeahead.js?hash=4b0500a…:21 Uncaught TypeError: Cannot read property 'AutoForm' of undefined(…)(anonymous function) @ comerc_autoform-typeahead.js?hash=4b0500a…:21(anonymous function) @ comerc_autoform-typeahead.js?hash=4b0500a…:164
aldeed_autoform-bs-datetimepicker.js?hash=8b8c92e…:21 Uncaught TypeError: Cannot read property 'AutoForm' of undefined(…)(anonymous function) @ aldeed_autoform-bs-datetimepicker.js?hash=8b8c92e…:21(anonymous function) @ aldeed_autoform-bs-datetimepicker.js?hash=8b8c92e…:211
meteortoys_toykit.js?hash=f51db2b…:20 Uncaught TypeError: Cannot read property 'ReactiveDict' of undefined(…)(anonymous function) @ meteortoys_toykit.js?hash=f51db2b…:20(anonymous function) @ meteortoys_toykit.js?hash=f51db2b…:468
msavin_mongol.js?hash=b9a3298…:1241 Uncaught TypeError: Cannot read property 'MeteorToys' of undefined(…)(anonymous function) @ msavin_mongol.js?hash=b9a3298…:1241(anonymous function) @ msavin_mongol.js?hash=b9a3298…:1244(anonymous function) @ msavin_mongol.js?hash=b9a3298…:1892
msavin_jetsetter.js?hash=7497b41…:20 Uncaught TypeError: Cannot read property 'Session' of undefined(…)(anonymous function) @ msavin_jetsetter.js?hash=7497b41…:20(anonymous function) @ msavin_jetsetter.js?hash=7497b41…:1147
meteortoys_blueprint.js?hash=309f341…:69 Uncaught TypeError: Cannot read property 'MeteorToys' of undefined(…)(anonymous function) @ meteortoys_blueprint.js?hash=309f341…:69(anonymous function) @ meteortoys_blueprint.js?hash=309f341…:72(anonymous function) @ meteortoys_blueprint.js?hash=309f341…:266
meteortoys_authenticate.js?hash=665f327…:21 Uncaught TypeError: Cannot read property 'Accounts' of undefined(…)(anonymous function) @ meteortoys_authenticate.js?hash=665f327…:21(anonymous function) @ meteortoys_authenticate.js?hash=665f327…:170
meteortoys_shell.js?hash=f1a98f7…:180 Uncaught TypeError: Cannot read property 'ToyKit' of undefined(…)(anonymous function) @ meteortoys_shell.js?hash=f1a98f7…:180(anonymous function) @ meteortoys_shell.js?hash=f1a98f7…:190(anonymous function) @ meteortoys_shell.js?hash=f1a98f7…:234
meteortoys_method.js?hash=9840ff1…:55 For the Method toy to work, you must install Mongol or
meteortoys_method.js?hash=9840ff1…:56 the Meteor Toys package. Grab the free edition at http://Meteor.Toys/
meteortoys_result.js?hash=078d7c2…:120 Uncaught TypeError: Cannot read property 'MeteorToysDict' of undefined(…)(anonymous function) @ meteortoys_result.js?hash=078d7c2…:120(anonymous function) @ meteortoys_result.js?hash=078d7c2…:123(anonymous function) @ meteortoys_result.js?hash=078d7c2…:220
meteortoys_autopub.js?hash=b6346a9…:68 Uncaught TypeError: Cannot read property 'MeteorToysDict' of undefined(…)(anonymous function) @ meteortoys_autopub.js?hash=b6346a9…:68(anonymous function) @ meteortoys_autopub.js?hash=b6346a9…:71(anonymous function) @ meteortoys_autopub.js?hash=b6346a9…:114
meteortoys_pub.js?hash=b1623a3…:55 For the Pub toy to work, you must install Mongol or
meteortoys_pub.js?hash=b1623a3…:56 the Meteor Toys package. Grab the free edition at http://Meteor.Toys/
meteortoys_sub.js?hash=bf534f1…:172 Uncaught TypeError: Cannot read property 'MeteorToys' of undefined(…)(anonymous function) @ meteortoys_sub.js?hash=bf534f1…:172(anonymous function) @ meteortoys_sub.js?hash=bf534f1…:175(anonymous function) @ meteortoys_sub.js?hash=bf534f1…:225
meteortoys_email.js?hash=25c989f…:71 Uncaught TypeError: Cannot read property 'MeteorToysDict' of undefined(…)(anonymous function) @ meteortoys_email.js?hash=25c989f…:71(anonymous function) @ meteortoys_email.js?hash=25c989f…:77(anonymous function) @ meteortoys_email.js?hash=25c989f…:284
meteortoys_listen.js?hash=eb2b6c3…:115 Uncaught TypeError: Cannot read property 'MeteorToysDict' of undefined(…)(anonymous function) @ meteortoys_listen.js?hash=eb2b6c3…:115(anonymous function) @ meteortoys_listen.js?hash=eb2b6c3…:118(anonymous function) @ meteortoys_listen.js?hash=eb2b6c3…:143
meteortoys_throttle.js?hash=31ae233…:70 Uncaught TypeError: Cannot read property 'MeteorToysDict' of undefined(…)(anonymous function) @ meteortoys_throttle.js?hash=31ae233…:70(anonymous function) @ meteortoys_throttle.js?hash=31ae233…:73(anonymous function) @ meteortoys_throttle.js?hash=31ae233…:117
meteortoys_status.js?hash=b29776c…:94 Uncaught TypeError: Cannot read property 'MeteorToysDict' of undefined(…)(anonymous function) @ meteortoys_status.js?hash=b29776c…:94(anonymous function) @ meteortoys_status.js?hash=b29776c…:97(anonymous function) @ meteortoys_status.js?hash=b29776c…:146
meteortoys_hotreload.js?hash=43f3213…:60 Uncaught TypeError: Cannot read property 'MeteorToysDict' of undefined(…)(anonymous function) @ meteortoys_hotreload.js?hash=43f3213…:60(anonymous function) @ meteortoys_hotreload.js?hash=43f3213…:63(anonymous function) @ meteortoys_hotreload.js?hash=43f3213…:105
aldeed_tabular.js?hash=dd48760…:26490 Uncaught TypeError: Cannot read property 'Session' of undefined(…)(anonymous function) @ aldeed_tabular.js?hash=dd48760…:28(anonymous function) @ aldeed_tabular.js?hash=dd48760…:26490
alanning_roles.js?hash=903a1f1…:18 Uncaught TypeError: Cannot read property 'Accounts' of undefined(…)(anonymous function) @ alanning_roles.js?hash=903a1f1…:18(anonymous function) @ alanning_roles.js?hash=903a1f1…:961
kadira_debug.js?hash=b307db4…:21 Uncaught TypeError: Cannot read property 'Session' of undefined(…)(anonymous function) @ kadira_debug.js?hash=b307db4…:21(anonymous function) @ kadira_debug.js?hash=b307db4…:922
global-imports.js?hash=bf8e58f…:9 Uncaught TypeError: Cannot read property 'Accounts' of undefined(…)(anonymous function) @ global-imports.js?hash=bf8e58f…:9
app.js?hash=8830583…:1 Uncaught ReferenceError: meteorInstall is not defined(…)(anonymous function) @ app.js?hash=8830583…:1
modules-runtime.js?hash=ab7e8d3…:139 Uncaught Error: Cannot find module 'babel-runtime/helpers/classCallCheck'(…)require.resolve @ modules-runtime.js?hash=ab7e8d3…:139Module.resolve @ modules-runtime.js?hash=ab7e8d3…:91Mp.import @ modules.js?hash=f2fe5b9…:381meteorInstall.node_modules.meteor.mdg:validation-error.validation-error.js @ mdg_validation-error.js?hash=7730322…:39fileEvaluate @ modules-runtime.js?hash=ab7e8d3…:191require @ modules-runtime.js?hash=ab7e8d3…:116(anonymous function) @ mdg_validation-error.js?hash=7730322…:88(anonymous function) @ mdg_validation-error.js?hash=7730322…:99
msavin_mongol.js?hash=b9a3298…:43 Uncaught TypeError: Cannot read property 'MeteorToys' of undefined(…)(anonymous function) @ msavin_mongol.js?hash=b9a3298…:43maybeReady @ meteor.js?hash=ae8b8af…:809loadingCompleted @ meteor.js?hash=ae8b8af…:821

Heeelllllpp!!!

1 Like

I remove and reinstalled meteor and that didn’t help.

I also ran rm -rf node_modules && npm install

Also, meteor npm install --save babel-runtime

None of that worked.

I just hit this same issue and now my app won’t fire up. I ran meteor update, came back and now I get a massive list of errors, pretty much stating it can’t find any package I have installed. I removed the link cache, re-built the app, the shell says it’s running but no bueno. Someone, anyone HELP US :scream:

Specific Error:

Uncaught Error: Cannot find module 'babel-runtime/helpers/classCallCheck'(…)   modules-runtime.js?hash=ab7e8d3…:139

same here… even my running dev app just stop after trying to install new package

yeah i’ve been working on this app straight for 20 hours…and now this…i’m in shock. between this and the US election I’m about to just go live in a very very dark deep cave.

2 Likes

hahahhahahah seems everybody is really sad in that side of the globe

I have the same issue after running meteor update. It seems to be from updating these modules:

babel-runtime*     upgraded from 0.1.12 to 1.0.0
ecmascript         upgraded from 0.5.9 to 0.6.0

Only workaround i have right now is to downgrade the versions on these packages. In .meteor/versions i changed out the lines:

babel-runtime@1.0.0 with babel-runtime@0.1.12

and

ecmascript@0.6.0 with ecmascript@0.5.9

My app seems to work as before now, I’m going to hold off on running meteor update again for now.

Hi folks, this is my fault, and I’m very sorry for the inconvenience.

The good news is that Meteor 1.4.2.1 (just released) fixes this problem, along with several other bugs that affected Meteor 1.4.2 (see History.md). Please run meteor update as soon as possible, and make sure you also run meteor npm install --save babel-runtime in your app if you haven’t already.

I hope this goes without saying, but please let me know if you have any other problems after updating!

5 Likes

:relieved: i tried again now, and it does indeed work. Thank you @benjamn!

I updated from a 1.4.1.3 to 1.4.2.3 yesterday and got the error

I’ve done meteor npm install --save babel-runtime thousand times at variopus places, tried npm only, babel-cli… all I can think of, but get the same error:

Unable to resolve some modules:

“babel-runtime/helpers/typeof” in
/home/xx/xx/xx.js
(web.browser)

If you notice problems related to these missing modules, consider running:

meteor npm install --save babel-runtime

Found no solution other than to revert to 1.4.1.3

i solved this by removing a call to Npm.depends inside a private meteor package (moving it instead to package.json). Not sure if this will help you.

I had a bit of trouble updating to 1.4.2.3. For one, the app wouldn’t start anymore (server errors about babel-runtime). And trying to fix this with:

meteor npm install --save babel-runtime

didn’t work right away.

We’ll it said it did in the terminal, but when I opened the app in the browser it was broken and there were errors in the console saying that the babel-runtime wasn’t found (or undefined or something).

I ended up manually creating a package.json file with contents: {} and a folder called node_modules in the project root and then ran

meteor npm install --save babel-runtime

again and it installed a shed-load of files (1600+) in the node_modules folder, which I guess ends up on both client and server. But the app did go back to running as usual. I checked the payload size for the client before and after doing this and there was only a 5k increase, so I guess I can live with it.

I’d prefer just to have what whatever I was using before (babel-runtime@0.1.12, I guess – or was it @0.1.13?), rather than having to install a ton of npm crap in my project root, but someone who knows more about what’s going on will probably tell me that I’m just getting the equivalent result anyway. If I’m not, and I’m doing something really wrong, please let me know!

If there’s another way to get things working, I’d like to hear about that too, as one bad side effect of having a ton of extra files in the project root is that I can’t build the app remotely on a low memory (1Gb) D.O. server anymore - the process keeps getting killed. Well, it works 1 in every 5 attempts, so deploying is a bit of a hit and miss affair now and kind of a pain.

That’s basically true: in Meteor 1.4.2 and earlier, there was a Meteor package called babel-runtime that provided custom helper functions for code generated by Babel, but it was increasingly out of sync with code generated by newer versions of Babel, so 1.4.2.1 switched to the official npm version of babel-runtime to solve that problem once and for all.

Among other differences, the npm babel-runtime package is a bit more aggressive about patching problems in built-in APIs like Symbol and Object.defineProperties, so it ends up using a bit more code than the Meteor implementation, but there’s (usually) a good reason for that.

Note that your client bundle only includes modules that were imported by your app, so most of the files in node_modules/babel-runtime/ will not be sent to the client. And in case you’re wondering why you need babel-runtime at all if you aren’t importing anything from it in your source code, the Babel compiler sometimes adds its own imports for babel-runtime/helpers/... modules, which are visible if you view the source of your app in the browser.

As for building on your production machine, the manual deployment workflow we recommend is to build locally and run remotely (instructions here). Running node main.js shouldn’t take nearly as much memory as building the app.

1 Like

Thank you for taking the time to give such a thoughtful, considered answer, @benjamn . I feel much better about it all now.

Yes, I’m aware of the (several) downsides of building remotely, and you’re right – running main.js is no problem whatsoever in terms of memory.

The same thing is happening to me with Meteor 1.6-beta.28, I have tried some of the fixes about with nothing working so far.
Error: Cannot find module 'babel-runtime/helpers/typeof' W20170918-15:38:33.693(-6)? (STDERR) at makeMissingError (packages/modules-runtime.js:221:12) W20170918-15:38:33.693(-6)? (STDERR) at require (packages/modules-runtime.js:231:19) W20170918-15:38:33.694(-6)? (STDERR) at eval (eval at Argus._eval (packages/argus/lib/server.js:81:5), <anonymous>:1:16) W20170918-15:38:33.694(-6)? (STDERR) at Object.Argus._eval (packages/argus/lib/server.js:81:5) W20170918-15:38:33.694(-6)? (STDERR) at Object.added (packages/argus/lib/server.js:104:32) W20170918-15:38:33.695(-6)? (STDERR) at Object.added (packages/cultofcoders:redis-oplog/lib/mongo/extendObserveChanges.js:84:26) W20170918-15:38:33.695(-6)? (STDERR) at _.each (packages/cultofcoders:redis-oplog/lib/cache/PublicationEntry.js:145:28) W20170918-15:38:33.695(-6)? (STDERR) at Function._.each._.forEach (packages/underscore.js:147:22) W20170918-15:38:33.696(-6)? (STDERR) at PublicationEntry._performInitialAddForObserver (packages/cultofcoders:redis-oplog/lib/cache/PublicationEntry.js:140:11) W20170918-15:38:33.696(-6)? (STDERR) at PublicationEntry.addObserver (packages/cultofcoders:redis-oplog/lib/cache/PublicationEntry.js:58:18)