babel: Maximum call stack size exceeded

EDIT: "babel-plugin-transform-object-rest-spread": "~6.20.2"

Hi,

I saw you just released babel-plugin-transform-object-rest-spread package version 6.20.0, and I’ve been getting Maximum call stack size exceeded from all my projects.

Stack trace:

RangeError: /Users/trilok/work/restaurants-redux/src/reducers/I18nReducer.js: Maximum call stack size exceeded
    at Function.get (/Users/trilok/work/restaurants-redux/node_modules/babel-traverse/lib/path/index.js:76:30)
    at TraversalContext.create (/Users/trilok/work/restaurants-redux/node_modules/babel-traverse/lib/context.js:68:27)
    at TraversalContext.visitMultiple (/Users/trilok/work/restaurants-redux/node_modules/babel-traverse/lib/context.js:99:25)
    at TraversalContext.visit (/Users/trilok/work/restaurants-redux/node_modules/babel-traverse/lib/context.js:190:19)
    at Function.traverse.node (/Users/trilok/work/restaurants-redux/node_modules/babel-traverse/lib/index.js:114:17)
    at NodePath.visit (/Users/trilok/work/restaurants-redux/node_modules/babel-traverse/lib/path/context.js:115:19)
    at TraversalContext.visitQueue (/Users/trilok/work/restaurants-redux/node_modules/babel-traverse/lib/context.js:150:16)
    at TraversalContext.visitSingle (/Users/trilok/work/restaurants-redux/node_modules/babel-traverse/lib/context.js:108:19)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 11
  • Comments: 50 (22 by maintainers)

Most upvoted comments

Phew, time to stop. Thanks everyone the reports and help! 😴

Ok figured it out, will fix

For those who need an immediate resolution, setting "babel-plugin-transform-object-rest-spread": "~6.19.0" in your package.json, rimraf node_modules, and reinstalling should get you back up and running.

Publishing now!

Sorry about this all

Ok it seems to pass in my local now - verify? 😄

@hzoo Any idea on https://github.com/babel/babel/issues/4972#issuecomment-265900542 ? It seems there’s a bunch of other stuff broken now. Perhaps it would be better to temporarily unpublish the new version?

Hmm that seems really weird… will look into it

🆒 Thanks, have a nice 😴

Thank you for all the hard work @hzoo!

reverting to the last working version should always work 😃

@hzoo “sorry”?! for managing one of the most useful and popular tools out there? 😃 Thanks for all your effort!

Looks like removing .babel.json and reverting to object spread 6.19.0 fixed the immediate problem

@3LOK There’s a “register” cache too - can you delete username/.babel.json?

If it’s helpful, react native (v0.37) hits this with the latest publish:

.../node_modules/react-native/local-cli/util/Config.js:43
  cwd: string,
     ^

SyntaxError: Unexpected token :
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:404:25)
    at loader (.../node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (.../node_modules/babel-register/lib/node.js:154:7)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (.../node_modules/react-native/local-cli/cliEntry.js:13:16)
    at Module._compile (module.js:425:26)

@hasSean still have the same issue after installing “babel-plugin-transform-object-rest-spread”: “~6.19.0”


You may need an appropriate loader to handle this file type.
|       const config = {
|         series,
|         ...options
|       };
|