2

I install gatsby plugin on gatsby template with check gatsby public(https://www.gatsbyjs.org/packages/gatsby-transformer-remark/). But the query don't appear to localhost:8000/___graphql.

I build gatsby-site to use gatsby new [name]

And install markdown plugin by npm install --save gatsby-transformer-remark

And add below line to gatsby-config.js.

plugins: [
  `gatsby-transformer-remark`,
]

I access to localhost:8000/___graphql. But query isn't exist. Graphiql say "Cannot query field "allMarkdownRemark" on type "Query"."

I do delete cookie, change browser, restart PC, rebuild site, try to install other plugins. But don't fix.

Anyone has solution? Please help me!

t taka
  • 23
  • 4
  • 1
    Hi @ttaka, `gatsby-transformer-remark` needs `gatsby-source-filesystem` in order to work. Did you config the `gatsby-source-filesystem` to include the folder in which `.md` files are stored? – Derek Nguyen May 10 '19 at 07:03
  • Thank your reaction and solution, @drek. You are right! I could find "allMarkdownRemark" query! Thank you! – t taka May 11 '19 at 04:18
  • It cannot vote to the comment...? :( – t taka May 11 '19 at 04:25

0 Answers0