react-fast-compare: Circular references, RangeError in prod
Maintainer’s Note: we need help reproducing this bug in react-fast-compare 2.0.4 (or greater). If you have hit this bug, please help us by submitting a repository or code sandbox that shows the behavior. Note, this library does not support circular objects, only React internal circular objects. 😃
Saw a previous issue, but still getting this in 2.0.1. Here’s the output:
I’m essentially comparing props, nothing too strange. The objects are all non-circular besides the react children. In dev mode it works just fine, in prod (Uglify compressed) it seems to break.
I’m using these opts:
new UglifyJsPlugin({
uglifyOptions: {
ecma: 8,
toplevel: true,
},
sourceMap: true,
cache: true,
parallel: true,
}),
And packages:
webpack@4.15.1
react@16.4.0
Going to look into it further, prod mode is a bit harder to debug obviously but I’ve isolated where it’s happening.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 21 (15 by maintainers)
Hi,
I’m getting this error too. “Warning: react-fast-compare does not handle circular references. Error Out of stack space”.
Here’s a very light representation of my set up - https://codesandbox.io/s/lyjkk9lnrq
The error only shows up on IE11. Chrome, Firefox and Safari are fine. I’m using this package standalone, not with Victory, mainly b/c I was sold on the speed!
Let me know if you need any other information.
@chrisbolin Yeah, sorry. Forget about this, I mixed multiple things and the issue is not with
react-fast-compare
😉