-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
GraphiQL White Screen of Death on Gatsby V5.11.0 #38634
Comments
We're having the exact same problem! Thank you for opening this issue. In our case, we notice it doesn't happen with one of our repositories that still uses Gatsby v5.11.0. It does, however, happen on a different one using v.5.12.6 (and when I tested a feature branch updating the 5.11 repo to 5.12.6, it generated the white screen of death too). So...something apparently happened between Gatsby v5.11.0 and v5.12.? to cause this. |
@tqureshi-uog Maybe you haven't updated the dependencies on the project which is using Gatsby 5.11.0. I have tried updating the dependencies and still issue persist. Also I don't want to upgrade to Gatsby to 5.12.6 as its having issue with gatsby-netlify-plugin and adapters. |
To clarify, we're not seeing the problem with Gatsby v5.11 - we are seeing the problem with the newer version, 5.12.6 Now that I look at your environment info, however, I see you're having the problem even though you're on v5.11. I'll take another look at our setup for the repo where GraphiQL is working. |
You may see if you clean install your dependencies again. or If not, I maybe having a dependency updated for 5.12.6 because I upgraded to 5.12.6 and then went back to 5.11.0 |
Here's my information for the repository where GraphiQL works:
Here's the info for the repo where GraphiQL does not work and gives the White Screen of Death:
Again, the only relevant difference I can see is that my working repo is on v5.11.0 while the one that used to work but now doesn't is on 5.12.6 For what it's worth, here's the changelog for gatsby-graphiql-explorer: https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-graphiql-explorer/CHANGELOG.md Though this might all be a red herring and there's something else causing the problem. |
I am experiencing this behavior when exporting Minimal reproduction using
|
I can confirm the same behavior as @tcmacdonald. We're on |
I have tried setting |
I believe I might have found a more consistent solution - upgrade GraphQL to v16.8.1 as per https://github.com/graphql/graphql-js/releases We were alerted about this update after activating dependabot on our repository. Once we merged the GraphQL update PR it created, the WSOD went away (without having to change |
@tqureshi-uog I don't have |
We don't have it in our package.json either - it's a dependency of Gatsby itself, I believe. When dependabot created its automated PR, only our package-lock.json file changed. |
@tqureshi-uog I checked my yarn-lock file and it already has |
BUMP |
2 similar comments
BUMP |
BUMP |
Can you tell me how you are facing this issue? |
At http://localhost:8000/___graphql I was getting a white screen with console errors about "TooltipProvider". After changing: But this is rather a workaround than a solution, of course. |
I think previously people here suggested to set ENABLE_GATSBY_REFRESH_ENDPOINT=false But you said that its working when its true. |
I remain convinced it's due to a rogue dependency somewhere within Gatsby's implementation of GraphQL. Since I use npm, I'm not sure what the equivalent command is for yarn, but if it has its own version of npm clean install, try that...? |
@hasanshafiq29 my mistake, sorry. I've corrected my post above. |
I thought |
Experiencing the same issue (GraphiQL editor WSOD) when upgrading from Gatsby 5.9.x to 5.12.x Issue seems to be happening for us on all versions of Gatsby past 5.9.x:
The error is the same as mentioned above: Can also confirm the same behaviour as @tcmacdonald and @ccesare above re: changing |
I am also getting |
I don’t want to confuse the issue… my situation was a little bit different, but maybe this will help someone. I had the same Tooltip error and behavior a couple weeks ago, running Gatsby 5.7, and it seemed to start out of nowhere – I didn’t update anything Gatsby-related or within my project. To my knowledge, the only thing I updated was my local VS Code. After completely nuking my local project and restarting Gatsby develop, I was able to get a second error, and this is what allowed me to troubleshoot further. Something, somewhere is using this @parcel/watcher library. And in July, they changed up the architecture and don't include all the binaries for every operating system. I don't know if it's Gatsby or VS Code or what, but I now have to include this in my package.json:
This ^^ fixed my Tooltip error. I wish I could explain it better, but this worked for me. |
I applied the above but did not fix. What FIXED my issue is replacing
and run yarn install
then removing the public and cache folder and run the gatsby develop It has nothing to do with the gatsby version, it is the upadte in the gatsby-graphiql-explorer which has caused the issue and upgrading to gatsby probably as a side effect upgrade the existing grqphql-explorer. With this workaround you do not have to set the refresh flag to off. |
I can confirm that rolling back to 3.11.0 got it working again for me: I'm currently working with gatsby 5.12.7 |
This is still happening with the latest version of Gatsby and none of the above-mentioned fixes work. |
Commenting out I was getting the exact same error as OP, the tooltip thing |
none of the ideas here worked for me, still can't get it to work. |
World class React framework Anybody who chooses Gatsby in 2024 is in for a wild ride |
This is currently happening to one of our projects, across multiple machines. Adding |
When I run monthly maintenance on projects, the package tries to update, I then:
This allows me to work with This is not a fix, it is a workaround, but it has worked every month since my comment in Nov: |
You manually update package-lock? Why not just use the resolutions property in package.json? |
☝️... this. I was experiencing this WSOD issue with Adding To the Gatsby developers,
I have not validated this theory, but I propose this issue may have been caused by #38279, since 3.11 is stable. If the required tooltip provider is rendered in some other part of the DOM, perhaps using createPortal docs: https://react.dev/reference/react-dom/createPortal |
This is still an issue in April 2024. Not being able to browse the GraphQL explorer is a huge letdown. Downgrading the version of the explorer to 3.11.0 as suggested by @Kearnol fixes the issue for us. Edit: Note that you need a hard refresh of the browser cache in order for it to take effect. This is the package.json setting with npm:
|
I tried to debug the issue, this is what I found: This is the line that is causing the error:
This is what is rendered: It is basically a This however does not work, maybe this is an issue with Wrapping the Another option would be to use |
Preliminary Checks
Description
Error:
Tooltip
must be used withinTooltipProvider
I am getting this error
Just open graphiQL and it loads for a second and then white screen
Reproduction Link
https://github.com/ample/gatsby-minimal-reproduction-38634/tree/main
Steps to Reproduce
Just open graphiQL and it loads for a second and then white screen
Expected Result
GraphiQL IDE should work
Actual Result
Page crashin
Environment
Config Flags
flags: {
DEV_SSR: false,
PRESERVE_FILE_DOWNLOAD_CACHE: true,
PARALLEL_SOURCING: true
},
The text was updated successfully, but these errors were encountered: