[SOLVED] Crazy logs after upgrade to Meteor 1.6.1

Hello,

After upgrading to Meteor 1.6.1 I’m having the following logs. Something looks wired :confused: The app works though but would like to get rid of the logs. Any help will be appreciated!

[object Object]
    at Object.isSpreadProperty (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/types/lib/validators/generated/index.js:1269:11)
    at hasSpread (/home/fede/apollo/guillaume/eventApp/node_modules/babel-plugin-transform-object-rest-spread/lib/index.js:38:13)
    at PluginPass.ObjectExpression (/home/fede/apollo/guillaume/eventApp/node_modules/babel-plugin-transform-object-rest-spread/lib/index.js:234:14)
    at newFn (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/visitors.js:223:21)
    at NodePath._call (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:64:19)
    at NodePath.call (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:38:17)
    at NodePath.visit (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:99:12)
    at TraversalContext.visitQueue (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:135:18)
    at TraversalContext.visitSingle (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:94:19)
    at TraversalContext.visit (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:176:19)
    at Function.traverse.node (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:76:17)
    at NodePath.visit (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:106:18)
    at TraversalContext.visitQueue (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:135:18)
    at TraversalContext.visitMultiple (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:89:17)
    at TraversalContext.visit (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:174:19)
    at Function.traverse.node (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:76:17)
    at NodePath.visit (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:106:18)
    at TraversalContext.visitQueue (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:135:18)
    at TraversalContext.visitSingle (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:94:19)
    at TraversalContext.visit (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:176:19)
    at Function.traverse.node (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:76:17)
    at NodePath.visit (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:106:18)
    at TraversalContext.visitQueue (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:135:18)
    at TraversalContext.visitMultiple (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:89:17)
    at TraversalContext.visit (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:174:19)
    at Function.traverse.node (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:76:17)
    at NodePath.visit (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:106:18)
    at TraversalContext.visitQueue (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:135:18)
    at TraversalContext.visitMultiple (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:89:17)
    at TraversalContext.visit (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:174:19)
    at Function.traverse.node (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:76:17)
    at NodePath.visit (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:106:18)
    at TraversalContext.visitQueue (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:135:18)
    at TraversalContext.visitSingle (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:94:19)
    at TraversalContext.visit (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:176:19)
    at Function.traverse.node (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:76:17)
    at traverse (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:46:12)
    at transformFile (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:108:27)
    at runSync (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:35:3)
    at transformFromAstSync (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transform-ast-sync.js:16:38)
    at Object.transformFromAst (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transform-ast.js:20:68)
    at transform (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:71:30)
    at compile (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:91:14)
    at Cache.Cp.get (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/cache.js:101:26)
    at Object.compile (/home/fede/.meteor/packages/ecmascript/.0.10.6.1wa6wqs.vtv8k++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:46:23)
    at Object.compile (packages/babel-compiler.js:51:29)
    at packages/babel-compiler.js:184:22
    at Function.time (/tools/tool-env/profile.js:305:10)
    at profile (packages/babel-compiler.js:232:20)
    at BabelCompiler.BCp.processOneFileForTarget (packages/babel-compiler.js:183:20)
    at BabelCompiler.<anonymous> (packages/babel-compiler.js:111:26)
    at Array.forEach (<anonymous>)
    at BabelCompiler.BCp.processFilesForTarget (packages/babel-compiler.js:110:14)
    at __bottom_mark__ (/tools/utils/parse-stack.js:64:14)
    at /tools/isobuild/compiler-plugin.js:192:27
    at /tools/utils/buildmessage.js:359:18
    at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:352:34
    at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:350:23
    at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
    at Object.enterJob (/tools/utils/buildmessage.js:324:26)
    at Profile.time (/tools/isobuild/compiler-plugin.js:180:22)
    at Function.time (/tools/tool-env/profile.js:305:10)
    at /tools/isobuild/compiler-plugin.js:179:15
    at Function._.each._.forEach (/home/fede/.meteor/packages/meteor-tool/.1.6.1.lkbgue++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:87:22)
    at CompilerPluginProcessor.runCompilerPlugins (/tools/isobuild/compiler-plugin.js:169:7)
    at ServerTarget._runCompilerPlugins (/tools/isobuild/bundler.js:1045:22)
    at buildmessage.enterJob (/tools/isobuild/bundler.js:825:34)
    at /tools/utils/buildmessage.js:359:18
    at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:352:34
    at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:350:23
    at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
    at Object.enterJob (/tools/utils/buildmessage.js:324:26)
    at ServerTarget.make (/tools/isobuild/bundler.js:819:18)
    at /tools/isobuild/bundler.js:2957:14
    at /tools/isobuild/bundler.js:3025:20
    at /tools/utils/buildmessage.js:271:13
    at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:264:29
    at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:262:18
    at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:253:23
    at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
    at Object.capture (/tools/utils/buildmessage.js:252:19)
    at bundle (/tools/isobuild/bundler.js:2910:31)
    at files.withCache (/tools/isobuild/bundler.js:2857:32)
    at Object.withCache (/tools/fs/files.js:1664:12)
    at Object.exports.bundle (/tools/isobuild/bundler.js:2857:16)
    at Profile.run (/tools/runners/run-app.js:579:36)
    at Function.run (/tools/tool-env/profile.js:490:12)
    at bundleApp (/tools/runners/run-app.js:578:34)
    at AppRunner._runOnce (/tools/runners/run-app.js:622:35)
    at AppRunner._fiber (/tools/runners/run-app.js:880:28)
    at /tools/runners/run-app.js:408:12

Here is my package.json file (I’m using both @babel/runtime and babel-runtime):

{
  "name": "meteor-starter-kit",
  "private": true,
  "scripts": {
    "start": "meteor run",
    "local": "meteor --settings settings.json",
    "local5000": "meteor --settings settings.json --port 5000",
    "lint": "eslint --quiet --ext .js,.jsx .",
    "prettier": "prettier --write \"client/**/*.js\" \"imports/**/*.js\" \"server/**/*.js\" --single-quote=true --trailing-comma=es5 --print-width=100",
    "test": "npm run lint",
    "storybook": "start-storybook -p 6006",
    "build-storybook": "build-storybook"
  },
  "dependencies": {
    "@babel/runtime": "^7.0.0-beta.40",
    "apollo-cache-inmemory": "^1.1.4",
    "apollo-client": "^2.0.4",
    "apollo-link": "^1.0.7",
    "apollo-link-http": "^1.3.2",
    "apollo-server-express": "^1.3.2",
    "babel-runtime": "^6.26.0",
    "bcrypt": "^0.8.7",
    "body-parser": "^1.18.2",
    "classnames": "^2.2.5",
    "express": "^4.16.2",
    "graphql": "^0.13.1",
    "graphql-anywhere": "^4.0.0",
    "graphql-tools": "^2.14.1",
    "indexof": "0.0.1",
    "install": "^0.10.1",
    "invariant": "^2.2.2",
    "lodash": "^4.17.4",
    "merge-graphql-schemas": "^1.4.0",
    "meteor-node-stubs": "^0.2.11",
    "prop-types": "^15.6.0",
    "react": "^16.0.0",
    "react-apollo": "^2.0.0",
    "react-dom": "^16.0.0",
    "react-fontawesome": "^1.6.1",
    "react-helmet": "^5.2.0",
    "react-loadable": "^5.3.1",
    "react-redux": "^5.0.6",
    "react-router-dom": "^4.2.2",
    "redux": "^3.7.2",
    "redux-logger": "^3.0.6",
    "simpl-schema": "^1.2.2",
    "styled-components": "^2.2.3",
    "web-push": "^3.2.5"
  },
  "devDependencies": {
    "@storybook/addon-actions": "^3.2.16",
    "@storybook/addon-links": "^3.2.16",
    "@storybook/react": "^3.2.16",
    "autoprefixer": "^6.3.5",
    "babel-eslint": "^7.0.0",
    "babel-plugin-import": "^1.1.0",
    "babel-plugin-styled-components": "^1.3.0",
    "babel-polyfill": "^6.26.0",
    "babel-preset-es2015": "^6.24.1",
    "babel-preset-react": "^6.24.1",
    "babel-preset-stage-1": "^6.16.0",
    "babel-root-slash-import": "^1.1.0",
    "eslint": "^2.10.2",
    "eslint-config-airbnb": "^9.0.1",
    "eslint-import-resolver-meteor": "^0.4.0",
    "eslint-plugin-import": "^1.8.0",
    "eslint-plugin-jest": "^21.2.0",
    "eslint-plugin-jsx-a11y": "^1.2.0",
    "eslint-plugin-meteor": "^3.5.2",
    "eslint-plugin-react": "^7.4.0",
    "node-sass": "^3.4.2",
    "postcss-reporter": "^1.3.3",
    "redux-devtools": "^3.3.2",
    "redux-devtools-dock-monitor": "^1.1.1",
    "redux-devtools-log-monitor": "^1.2.0",
    "storybook-host": "^4.1.4",
    "stylelint": "^5.2.1"
  }
}

This is my .babelrc:

{
  "presets": [
    "stage-1",
    "react"
  ],
  "plugins": [
    "styled-components",
    "babel-root-slash-import"
  ]
}

Finally, this is my meteor packages file:

meteor-base@1.3.0             # Packages every Meteor app needs to have
mongo@1.4.2                   # The database Meteor supports right now
standard-minifier-css@1.4.0   # CSS minifier run for production mode
standard-minifier-js@2.3.1    # JS minifier run for production mode
es5-shim@4.7.0                # ECMAScript 5 compatibility for older browsers.
ecmascript@0.10.0             # Enable ECMAScript2015+ syntax in app code
shell-server@0.3.1

accounts-facebook@1.3.1
accounts-password@1.5.0
apollo
dynamic-import@0.3.0
service-configuration@1.0.11
http@1.4.0
static-html
force-ssl@1.1.0
browser-policy@1.1.0
check@1.3.0
swydo:graphql
fortawesome:fontawesome
alanning:roles
orcprogramming:collection2-core-server   # server side only version of aldeed:collection2-core
orcprogramming:accounts-passwordless

1 Like

You have two Babel dependencies. Remove the older version then try again

2 Likes

Hey @illustreets thanks for the observation. I kept the old version because of some dependencies, but everything seems normal after removing babel-runtime.

Thanks!

1 Like

I’m having the same issue. I’ve removed babel-runtime in favor of @babel/runtime but still the same annoying log waterfall.

Hey @zaklampert, after removing babel-runtime I also got some other issues. In my case the problem was with my babel config, I had packages that were not necessary and were conflicting with each other. Usually the default meteor config should suffice. I also had a messy configuration inside my .babelrc. Hope it helps!

Looks like changing .babelrc to use

{
  "presets": [
    "env"
  ]
}

did the trick.

Thanks @orcprogramming!

It’s strongly recommended not to use preset-env with Meteor as it can lead to slow double compilation of your files. With Meteor’s default config, preset-env gives you no benefit anyway