-
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
Parallel Queries and Temporary Query Result Error #36599
Comments
Hey @LekoArts, sorry for pinging you, but this is causing disruption for the Node.js org. Could you maybe give an 👀 here on your earlier convenience? Thanks 🙇 |
Please provide a minimal reproduction and not the whole project. This has too many variables and things that might cause this (outside of Gatsby's reach). Only if you can't reproduce it at all in a more minimal project we'll deal with the whole project. |
Will try to do, ty! |
Note.: It only happens on build, when just running dev server, all pages work nicely. |
Hi @ovflowd ! I gave this a run locally and believe the MDX v2 syntax in the
After fixing those locally, my build succeeds. Long-term, you'll need to ensure that your MD is outputted as compliant with MDX V1, or, upgrade your Gatsby MDX setup to V2 (but that has backwards breaking changes for the MD files not in the |
Hey, @graysonhicks thank you so much for actually spending time on this and doing such a deep analysis, this is spectacular! Regarding making all the Markdown files MDX v1 compliant. At least on the So in theory all Markdown files should already be MDX v1 compliant. Is there any way we could automatically fix these issues? As we're planning into migrating all the blog posts from nodejs.org to there, this sounds like a massive work 😅 Not to mention, more API docs are going to be moved, as the script right now only generates v18 docs, but if I modify the script to also add the v16 docs, the build also crashes. It is kinda tricky to have MDX just right-away crashing when it finds non-compliant stuff. Other Markdown parsers don't do that... I do understand we should be compliant, and if there's an easier way of doing so, I'm down, and I realise now this is not a Gatsby specific issue but MDX one... I'm definitely open for tips/advice :) |
No problem @ovflowd . I only tested on the |
They're not being generated. Basically "copy/pasted" from here. Then we run a script that modifies the frontmatter to match the ones from our blog. Also, we run our lint command to check they respect all rules; otherwise, we run What is generated are our API docs through this script. And those are heavily modified through a few regexe's to be MDX compliant, or at least as much as possible. The lint command also doesn't give any error to them. |
They're not being exported on MDXv2. We never attempted to go through the MDXv2 format. (I tried, and checked with linting to MDXv2 how much change would be needed, and ehhh, 1k+ errors straight of the bat, the TL;DR is here: #36519 (comment)) |
@graysonhicks is there any way I can debug which file threw a parallel query error? |
@ovflowd Thanks for pointing to that larger discussion, I think I found and fixed a lot of the errors you had already seen 😅 . Interestingly, you note in that thread that you know there is syntax breaking MDXv2, but it appears to be breaking in MDXv1 based on my testing today as well. Ideally you would have all the content be fixed, as Gatsby expects valid MD(X) files. I agree there could be better error handling on the particular file. I ran them through a compiler here. Did anything change with how |
Confirmed several of the issues I found were syntax errors introduced in MDXv2, so I'm not sure why those would be failing on MDXv1: |
Nope. As I mentioned, the And sadly, we cannot migrate to MDXv2 as stated in the thread, or at least gatsby-plugin-mdx@4 because it has to break changes that are just entirely incompatible with, for example, i18n. |
Note.: The way how we do i18n right now is every page makes the query of the same MDX document in the selected language and the current language. If a file with the current language is not found, we fall back to the default language file. With the MDX files being assigned directly on |
If I understand it correctly then, we can close this issue and move further discussion to "Discussions" as the root of the issue was invalid MDX? Our workers should throw more descriptive errors, if we can have a reproduction of a swallowed error (showing the above error, not the original one) we can discuss that in a new issue. For your other questions you can use GitHub Discussions or Discord, please note though that we're a small team and there's no guarantee to always get a promptly answer as such we partially rely on community members helping each other. |
I don't think so, again, MDX parser and linter doesn't complain about the contents I added.
But they don't. They gave nothing, and I'm not exaggerating. Here's an example:
I understand that, and I appreciate the help. I'm just honestly out of options 😅 (As I honestly have no idea what to do with this error) |
So I was still unable to find a local linting solution that showed the same errors I was able to find by running through the MDX compiler. But, I reintroduced all of the syntax errors and bumped these dependencies:
It then builds successfully for me. Can you try that? |
@graysonhicks I don't thibk that using eslint-mdx and eslint-plugin-mdx v2 would make sense for a project using mdx v1 |
What builds successfully? (It is important to mention that the test-branch I created is quite outdated already, I would need to create another reproduction branch) |
The |
How could an eslint-plugin change make the builds pass? Am I missing something? 😅 |
I don't know, I'm just letting you know what can unblock you. |
Gotcha, sorry for the late reply. I'm going to do what you did then, and see what happens. 🙏 |
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! 💪💜 |
Let's close this for now, as there are no actual paths for fixing any of these issues. |
Preliminary Checks
Description
Our Gatsby application suffers from crashes (100% 10/10) when running
gatsby build
due to "Parallel Queries" crashing without saying which query is crashing.And during development runtimes, randomly, when opening different pages, it just crashes most of the time with
Error: Couldn't find temp query result for "/en/blog/releases/v16.6.2".
(Or similar, with the difference of other page titles).Note that by removing the newly added
content/blog/releases
the crash fromgatsby build
disappears, but the random temp query result issue persists. I have no idea which file is causing it to crash. All those files abide by MDXv2 standards. (Even tho the App uses MDXv1)Reproduction Link
https://github.com/ovflowd/nodejs.dev/tree/test/gatsby-crashes
Steps to Reproduce
gatsby build
OR
gatsby develop
Expected Result
Actual Result
Environment
Config Flags
FAST_DEV: true
The text was updated successfully, but these errors were encountered: