Site Looks in development but does not pull in data during Gatsby build process

I’m new to Storyblok and Gatsby. I’ve built a site and created a number of components and everything looks good. My problem, however, is that I’m getting an error on gatsby build it seems like a basic error but finding any documentation on how to fix is non-existent as far as I’m concerned.

The site runs great when running gatsby develop but gatsby build gives me the following:


There was an error in your GraphQL query:

Cannot query field "allStoryblokEntry" on type "Query".

If you don't expect "allStoryblokEntry" to exist on the type "Query" it is most likely a typo.
However, if you expect "allStoryblokEntry" to exist there are a couple of solutions to common problems:

- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "allStoryblokEntry" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add at least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "Query":

I’ve followed the error instruction to no avail. After creating the schema definition I don’t get a build error but the system is not pulling the data to build the one home page I have.

const path = require('path')

exports.createSchemaCustomization = ({ actions, schema }) => {
  const { createTypes } = actions
  const typeDefs = `
  type StoryblokEntry implements Node @dontInfer {
    field_component: String!
    uuid: String!
    content: String!
    name: String!
    full_slug: String!
    id: ID!
    parent: Node
    children: [Node!]!
    internal: Internal!

// Log out information after a build is done
exports.onPostBuild = ({ reporter }) => {`Your Gatsby site has been built!`)

exports.onCreateWebpackConfig = ({ actions }) => {
    node: {
      fs: 'empty'

In my index page I have the following which why I believe I’m seeing the error I’m seeing but I’m not understanding why.


export const query = graphql`
    story: storyblokEntry(full_slug: { eq: "home" }) {