-
Notifications
You must be signed in to change notification settings - Fork 46
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
TypeError: Converting circular structure to JSON #96
Comments
I've narrowed it down a bit more, at least for some of these. This issue seems to arise in a handful of files when I am updating eslint-plugin-react-hooks from 2.5.1 to 4.0.5. When I run eslint without the jest runner, I get a more useful error here:
In this particular case, I was able to reproduce it with this file: import React, { useEffect, useContext } from 'react';
export const Repro = (props) => {
const fooContext = useContext(foo);
const bar = () => {
baz({
pizza: fooContext.pizza,
pasta: fooContext?.pasta?.sauce,
});
};
useEffect(bar, []);
return <div />;
}; If I change this file in a number of ways (e.g. removing the |
Upstream bug report: facebook/react#19243 |
@lencioni do you think we can do anything to avoid making the error worse than when running "plain" eslint? |
I've encountered the error |
I am not using any of the mentioned libraries, just plain eslint and jest, but i'm getting this problem within the jest-worker |
I've been looking at our logs in CI and I've noticed the following error pop up a bunch of times:
jest-runner-eslint 0.9.0
I believe that nested jest-worker version is 24.9.0.
Based on this stack trace I'm not really sure where this might be coming from or how I might reduce it to a minimal repro case. Any ideas or suggestions of where to start?
The text was updated successfully, but these errors were encountered: