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)
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!
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:
@hasSean still have the same issue after installing “babel-plugin-transform-object-rest-spread”: “~6.19.0”