[SOLVED] Babel Runtime Errors When Updating to Meteor 1.7

THE SOLUTION

  1. meteor npm remove --save babel-preset-meteor
  2. Delete the hidden file .babelrc from your projects root folder.

That’s it; there’s nothing else to it.

THE ORIGINAL ISSUE

I have tried the recommended meteor npm install --save @babel/runtime with no success. I’m still getting the following errors:

=> Started proxy.                             
app/client/lib/semantic-ui/semantic.less.css: warn: There are some @import rules those are not taking effect as they are required to be in the beginning of the file.
=> Errors prevented startup:                  
   
   While processing files with ecmascript (for target web.browser):

   /Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/scope/index.js:869:13:
   Cannot read property 'bindings' of null
   at Scope.moveBindingTo
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/scope/index.js:869:13)
   at BlockScoping.updateScopeInfo
   (/Users/matt/Desktop/Edabit/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:364:17)
   at BlockScoping.run
   (/Users/matt/Desktop/Edabit/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:330:12)
   at PluginPass.BlockStatementSwitchStatementProgram
   (/Users/matt/Desktop/Edabit/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:70:24)
   at newFn
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/visitors.js:193:21)
   at NodePath._call
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:53:20)
   at NodePath.call
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:40:17)
   at NodePath.visit
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:88:12)
   at TraversalContext.visitQueue
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:118:16)
   at TraversalContext.visitSingle
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:90:19)
   at TraversalContext.visit
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:146:19)
   at Function.traverse.node
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:94:17)
   at traverse
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:76:12)
   at transformFile
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:88:29)
   at runSync
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:45:3)
   at Object.transformSync
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transform.js:43:38)
   at transform
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:103:26)
   at compile
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:122:5)
   at Cache.Cp.get
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/cache.js:101:26)
   at Object.exports.compile
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:51:7)
   at Object.compile (packages/babel-compiler.js:44:29)
   at packages/babel-compiler.js:198:22
   at Function.time (/tools/tool-env/profile.js:305:10)
   at profile (packages/babel-compiler.js:246:20)
   at BabelCompiler.BCp.processOneFileForTarget (packages/babel-compiler.js:197:20)
   at BabelCompiler.<anonymous> (packages/babel-compiler.js:115:26)
   at Array.forEach (<anonymous>)
   at BabelCompiler.BCp.processFilesForTarget (packages/babel-compiler.js:114:14)
   
   
   While processing files with ecmascript (for target web.browser.legacy):

   /Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/scope/index.js:869:13:
   Cannot read property 'bindings' of null
   at Scope.moveBindingTo
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/scope/index.js:869:13)
   at BlockScoping.updateScopeInfo
   (/Users/matt/Desktop/Edabit/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:364:17)
   at BlockScoping.run
   (/Users/matt/Desktop/Edabit/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:330:12)
   at PluginPass.BlockStatementSwitchStatementProgram
   (/Users/matt/Desktop/Edabit/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:70:24)
   at newFn
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/visitors.js:193:21)
   at NodePath._call
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:53:20)
   at NodePath.call
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:40:17)
   at NodePath.visit
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:88:12)
   at TraversalContext.visitQueue
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:118:16)
   at TraversalContext.visitSingle
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:90:19)
   at TraversalContext.visit
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:146:19)
   at Function.traverse.node
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:94:17)
   at traverse
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:76:12)
   at transformFile
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:88:29)
   at runSync
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:45:3)
   at Object.transformSync
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transform.js:43:38)
   at transform
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:103:26)
   at compile
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:122:5)
   at Cache.Cp.get
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/cache.js:101:26)
   at Object.exports.compile
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:51:7)
   at Object.compile (packages/babel-compiler.js:44:29)
   at packages/babel-compiler.js:198:22
   at Function.time (/tools/tool-env/profile.js:305:10)
   at profile (packages/babel-compiler.js:246:20)
   at BabelCompiler.BCp.processOneFileForTarget (packages/babel-compiler.js:197:20)
   at BabelCompiler.<anonymous> (packages/babel-compiler.js:115:26)
   at Array.forEach (<anonymous>)
   at BabelCompiler.BCp.processFilesForTarget (packages/babel-compiler.js:114:14)
   
   
   While processing files with ecmascript (for target os.osx.x86_64):

   /Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/scope/index.js:869:13:
   Cannot read property 'bindings' of null
   at Scope.moveBindingTo
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/scope/index.js:869:13)
   at BlockScoping.updateScopeInfo
   (/Users/matt/Desktop/Edabit/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:364:17)
   at BlockScoping.run
   (/Users/matt/Desktop/Edabit/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:330:12)
   at PluginPass.BlockStatementSwitchStatementProgram
   (/Users/matt/Desktop/Edabit/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:70:24)
   at newFn
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/visitors.js:193:21)
   at NodePath._call
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:53:20)
   at NodePath.call
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:40:17)
   at NodePath.visit
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:88:12)
   at TraversalContext.visitQueue
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:118:16)
   at TraversalContext.visitSingle
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:90:19)
   at TraversalContext.visit
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:146:19)
   at Function.traverse.node
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:94:17)
   at traverse
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:76:12)
   at transformFile
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:88:29)
   at runSync
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:45:3)
   at Object.transformSync
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transform.js:43:38)
   at transform
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:103:26)
   at compile
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:122:5)
   at Cache.Cp.get
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/cache.js:101:26)
   at Object.exports.compile
   (/Users/matt/.meteor/packages/ecmascript/.0.11.0.1hcnd1c.nsos++os+web.browser+web.browser.legacy+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:51:7)
   at Object.compile (packages/babel-compiler.js:44:29)
   at packages/babel-compiler.js:198:22
   at Function.time (/tools/tool-env/profile.js:305:10)
   at profile (packages/babel-compiler.js:246:20)
   at BabelCompiler.BCp.processOneFileForTarget (packages/babel-compiler.js:197:20)
   at BabelCompiler.<anonymous> (packages/babel-compiler.js:115:26)
   at Array.forEach (<anonymous>)
   at BabelCompiler.BCp.processFilesForTarget (packages/babel-compiler.js:114:14)
   
   
=> Your application has errors. Waiting for file change.
=> Started MongoDB.  
2 Likes

i solved it using version 55 instead of 56

“dependencies”: {
@babel/runtime”: “7.0.0-beta.55”,

}