Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Issues with running on Windows local machine vs Docker container #183

Open
pruballa opened this issue Mar 23, 2021 · 0 comments
Open

Issues with running on Windows local machine vs Docker container #183

pruballa opened this issue Mar 23, 2021 · 0 comments

Comments

@pruballa
Copy link

pruballa commented Mar 23, 2021

Hi,
I am trying to run a gatsby application on my local Windows machine and it is working as expected with no errors. However, when I try to dockerize the application I get a bunch of errors:

ERROR #85923  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "image" on type "MarkdownRemarkFields".

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

File: src/gatsby-theme-apollo-docs/components/template.js:214:11


 ERROR #85923  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "graphManagerUrl" on type "MarkdownRemarkFields".

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

File: src/gatsby-theme-apollo-docs/components/template.js:215:11


 ERROR #85923  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "image" on type "MdxFields".

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

File: src/gatsby-theme-apollo-docs/components/template.js:228:11


 ERROR #85923  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "graphManagerUrl" on type "MdxFields".

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

File: src/gatsby-theme-apollo-docs/components/template.js:229:11


 ERROR #85923  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "image" on type "MarkdownRemarkFields".

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

File: node_modules/gatsby-theme-apollo-docs/src/components/template.js:244:11


 ERROR #85923  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "image" on type "MdxFields".

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

File: node_modules/gatsby-theme-apollo-docs/src/components/template.js:259:11

I compared the template.js in node_modules/gatsby-theme-apollo-docs/src/components/template.js on my Windows machine and in the Linux docker container and there were some differences.

Here is the node_modules/gatsby-theme-apollo-docs/src/components/template.js on my Windows file:

export const pageQuery = graphql\n
  query PageQuery($id: String) {`
    site {
      pathPrefix
      siteMetadata {
        title
        description
      }
    }
    file(id: {eq: $id}) {
      childMarkdownRemark {
        frontmatter {
          title
          description
        }
        headings(depth: h2) {
          value
        }
        fields {
          image
          **graphManagerUrl**
        }
        htmlAst
      }
      childMdx {
        frontmatter {
          title
          description
        }
        headings(depth: h2) {
          value
        }
        fields {
          image
          **graphManagerUrl**
        }
        body
      }
    }
  }

Here is the same file in Linux docker container (the difference is highlighted by the variable enclosed between ** **):

export const pageQuery = graphql
 query PageQuery($id: String) {
    site {
      pathPrefix
      siteMetadata {
        title
        description
      }
    }
    file(id: {eq: $id}) {
      childMarkdownRemark {
        frontmatter {
          title
          description
        }
        headings {
          value
          depth
        }
        fields {
          image
          **apiReference**
        }
        htmlAst
      }
      childMdx {
        frontmatter {
          title
          description
        }
        headings {
          value
          depth
        }
        fields {
          image
          **apiReference**
        }
        body
      }
    }
  }
;

Could someone please give some insights into why this problem is occurring. Is the gatsby-theme-apollo-docs module installed differently in Windows and linux environment?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant