-
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
Errors in createPage cycle show between lines of GraphQL query #18413
Comments
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing! Thanks for being a part of the Gatsby community! 💪💜 |
Away, gatsbot, away! I'll see about opening a PR soon. |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing! Thanks again for being part of the Gatsby community! |
@GKJCJG Could you please post a reproduction of this? I'm not able to see the behavior you're describing. In my test runs the error shows the complete stacktrace. |
@LekoArts in the last couple of weeks, I've noticed that the behavior of these error messages has changed to show the full stack trace rather than the just the query. I didn't watch closely to see whether a particular version change anywhere in my packages produced the change, but it does seem that the behavior has improved. |
Description
When an error occurs in the createPage cycle, the error message often points to part of the GraphQL query even when the error occurred in code.
Steps to reproduce
Throw an error in a plugin that manipulates MarkdownAST.
Expected result
The error message should point to the lines of code in which the error actually occurred. Adding some error logging to createPages showed that the error was occurring in my Prism plugin:
Actual result
The error message points to the GraphQL query that was running to produce the page requested.
e.g.
See our docs page for more info on this error: https://gatsby.dev/issue-how-to
Environment
Has occurred on a Red Had Linux machine and a Windows 10 machine.
npmPackages:
gatsby: 2.13.32 => 2.13.32
gatsby-cli: 2.5.12 => 2.5.12
gatsby-plugin-catch-links: 2.0.13 => 2.0.13
gatsby-plugin-less: 2.0.12 => 2.0.12
gatsby-plugin-matomo: 0.7.0 => 0.7.0
gatsby-plugin-mdx: 1.0.33 => 1.0.33
gatsby-plugin-nprogress: 2.0.10 => 2.0.10
gatsby-plugin-react-helmet: 3.0.12 => 3.0.12
gatsby-plugin-typescript: 2.0.13 => 2.0.13
gatsby-plugin-webpack-bundle-analyzer: 1.0.4 => 1.0.4
gatsby-remark-autolink-headers: 2.0.16 => 2.0.16
gatsby-remark-code-titles: 1.1.0 => 1.1.0
gatsby-remark-copy-linked-files: 2.0.12 => 2.0.12
gatsby-remark-embed-snippet: 3.2.4 => 3.2.4
gatsby-remark-embed-video: 1.7.1 => 1.7.1
gatsby-remark-emojis: ^0.3.2 => 0.3.2
gatsby-remark-prismjs: 3.3.17 => 3.3.3
gatsby-source-elasticsearch: 0.1.0 => 0.1.0
gatsby-source-filesystem: 2.0.33 => 2.0.33
gatsby-transformer-json: 2.2.4 => 2.2.4
gatsby-transformer-remark: 2.3.12 => 2.3.12
The text was updated successfully, but these errors were encountered: