Skip to content
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

Error trying to adding a field 'Interactions' #44

Open
mlvieira opened this issue Aug 20, 2019 · 3 comments
Open

Error trying to adding a field 'Interactions' #44

mlvieira opened this issue Aug 20, 2019 · 3 comments
Labels
question Further information is requested

Comments

@mlvieira
Copy link

Keep getting this error even though I already add the field in gatsby-node.js

Gatsby-node.js
interactions {
childMarkdownRemark {
internal {
content
}
}
}

Compiling error:

GraphQLError: Cannot query field "interactions" on type "frontmatter".

  • new Promise

  • index.js:370 graphqlRunner
    [gatsby-bootcamp]/[gatsby]/dist/bootstrap/index.js:370:14

  • gatsby-node.js:17 Object.exports.createPages
    /home/rot/Desktop/esseehcerto/gatsby-bootcamp/gatsby-node.js:17:10

  • api-runner-node.js:154 runAPI
    [gatsby-bootcamp]/[gatsby]/dist/utils/api-runner-node.js:154:37

  • api-runner-node.js:258 resolve
    [gatsby-bootcamp]/[gatsby]/dist/utils/api-runner-node.js:258:19

  • debuggability.js:313 Promise._execute
    [gatsby-bootcamp]/[bluebird]/js/release/debuggability.js:313:9

  • promise.js:483 Promise._resolveFromExecutor
    [gatsby-bootcamp]/[bluebird]/js/release/promise.js:483:18

@dlbnco
Copy link
Member

dlbnco commented Aug 28, 2019

Hello @bentri 👋

Can you share your entire gatsby-node.js as well as the pages that you've added interactions to?

@mlvieira
Copy link
Author

gatsby-node.js = https://pastebin.com/myu7PxRB
drugs.js = https://pastebin.com/SVrhEVvC
Every substance I added an interaction.md following the pattern of each substance

@dlbnco dlbnco added the question Further information is requested label Aug 28, 2019
@dlbnco
Copy link
Member

dlbnco commented Oct 16, 2019

@bentri Sorry for taking so long to follow up.

Did you also add:

interactions: './interactions.md'

In each substance's index.md?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants