-
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
Failed We've encountered an error: Minified React error #31 #31762
Comments
Hi! Sorry to hear you're running into an issue. To help us best begin debugging the underlying cause, it is incredibly helpful if you're able to create a minimal reproduction. This is a simplified example of the issue that makes it clear and obvious what the issue is and how we can begin to debug it. If you're up for it, we'd very much appreciate if you could provide a minimal reproduction and we'll be able to take another look. Thanks for using Gatsby! 💜 |
Just a quick update that might be related. This is the output of
|
The complete source code for the site that I am building can be found on https://github.com/OdysLam/odyslam.com-v2/tree/main/gatsby @LekoArts Thanks for the quick answer! |
I tried commenting out nearly all my code but the issue won't go away :/ |
Hey @LekoArts I managed to single out the problem to this query:
Any idea what's the problem? ofc the query is not quoted when the problem comes up. Best, |
For some reason, graphql completely fails. What is happening basically is that the server is rendered, but without any graphql-related functionality. When I visit the graphql dashboard, the data model is empty. It's like nothing is loaded into graphql 😅 |
I think indeed the gatsby-mdx-plugin is the culprit here. Now, I have this issue:
The weird thing is that my setup would work 1 month ago, so something happened in the interim. I have tried using the plugin with version 2.4.0 (released about 2 months ago), but no luck 🤷♂️ |
I managed to solve the problem, by changing nearly all packages to an older version. The thing is that the solution was a combination of changing the packages and a fix in the code. I gave MDXProvider a {children} object instead of {mdx.body}. The thing is that in my old code, that part was correct ( I assume that trying to solve this problem, I changed it by mistake). TBH, after spending so many hours, I have no idea what was it. It has to do for sure with the MDX plugin, other than that. I have literally no idea. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Thanks again for being part of the Gatsby community! 💪💜 |
Description
I get the following error every time I run
gatsby develop.
Gatsby clean
hasn't solved it.I don't get any other info, so it's really hard to understand why. There are some dependency issues, so it could be that. (I didn't use to have this issue).
Describe the issue that you're seeing.
Steps to reproduce
run
gatsby develop
Environment
The text was updated successfully, but these errors were encountered: