-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught Error: TypeError: � Chromafi: Converting circular structure to JSON #5
Comments
I think I have got the solution to this, let me code it and make a pull request. |
ahhh the solution, i tried a yesterday, it is slow. I used safe-json-stringify in place of JSON.stringify, there are a lot of issues that came with it. I then used util.inspect, but chromafi doesn't highlight code nor stringify functions. Will let you know progress if I get anywhere. |
Just made a pr of the first solution. Please check it out i think this is the way to go, we start from there. |
It looks like you need to update the "circular json throws" test. I'm assuming the code will never throw with your update? |
If an object has any circular references, or objects that refer to themselves this is what Chromafi throws.
Cant the code simple put '[circular]' in place of the code that is circular?
The text was updated successfully, but these errors were encountered: