-
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
createNodeField
is not working in gatsby-remarked
plugin
#20684
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. Thanks for being a part of the Gatsby community! 💪💜 |
This is still a bug and it's still blocking me in various ways. I plan to, in the next week or so, dive in and see if I can fix it |
@crutchcorn Hi, I built your project and cannot reproduce the bug... It works for me, i.e. I can query |
Golly! I must've been running an old version. This seems to've been fixed. Sorry about that, all! |
Hi @jlkiri, I think I'm having the same issue. I've got a Gatsby Remark plugin as per the Gatsby docs, and in the Steps to reproduce:
|
Description
Describe the issue that you're seeing.
I'm seeing that whenever I use a
gatsby-transformer-remark
plugin that has acreateFieldNode
function call, it does not add said field to the GQL instanceSteps to reproduce
Add in a
createNodeField
in an example plugin, add said plugin togatsby-transformer-remark
plugins arrayLoad develop version, query for the field name, see that it's not being grabbed and throwing errors
Example Project I'm Seeing This In
https://github.com/unicorn-utterances/unicorn-utterances/blob/fix-count/plugins/count-inline-code/index.js#L21
And include the plugin locally in the
gatsby-config
file:https://github.com/unicorn-utterances/unicorn-utterances/blob/fix-count/gatsby-config.js#L64
Expected result
What should happen?
I want to be able to query for a field I've created in the
createNodeField
in the GQL instanceActual result
What happened.
I am not able to query the inlineCount of the node I expect that field to be on with the error:
Cannot query field "inlineCount" on type "MarkdownRemarkFields"
Which is strange, because running through the node debugger diving into the gatsby code, it seems that the
internal
value is being set on the node, as expected:Environment
Run
gatsby info --clipboard
in your project directory and paste the output here.The text was updated successfully, but these errors were encountered: