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

GraphQL error on start #17

Closed
mquandalle opened this issue Jan 10, 2019 · 3 comments
Closed

GraphQL error on start #17

mquandalle opened this issue Jan 10, 2019 · 3 comments

Comments

@mquandalle
Copy link

Hello,

When I yarn install, yarn dev this project I encounter the following error on Linux:

error GraphQL Error Unknown field `childImageSharp` on type `File`

  file: /home/mquandalle/gatsby-starter-ghost/src/components/common/Layout.js

   1 |
   2 |             query GhostSettings {
   3 |                 allGhostSettings {
   4 |                     edges {
   5 |                         node {
   6 |                             ...GhostSettingsFields
   7 |                         }
   8 |                     }
   9 |                 }
  10 |                 file(relativePath: {eq: "ghost-icon.png"}) {
> 11 |                     childImageSharp {
     |                     ^
  12 |                         fixed(width: 30, height: 30) {
  13 |                             ...GatsbyImageSharpFixed
  14 |                         }
  15 |                     }
  16 |                 }
  17 |             }
  18 |

Is that expected?

@naz
Copy link
Member

naz commented Jan 10, 2019

Hey @mquandalle! Was running into the same issue when running the repo at 4a5ebda version, but after pulling the latest changes from master and running yarn && yarn dev worked perfectly. Let me know if the same error happens for you after an update :)

@naz naz added the needs info label Jan 10, 2019
@mquandalle
Copy link
Author

Indeed it works with the latest changes from master, is that what gatsby new gatsby-starter-ghost https://github.com/TryGhost/gatsby-starter-ghost.git is supposed to do or is it possible that running this command will pull an outdated version of this repository?

@aileen
Copy link
Member

aileen commented Jan 11, 2019

The moment you run gatsby new gatsby-starter-ghost https://github.com/TryGhost/gatsby-starter-ghost.git you create a snapshot of the repo. Unfortunately yours contained this issue 😔

Updating it like @gargol recommended downloaded the fix for it.

Closing this issue, as it's solved now.

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

No branches or pull requests

3 participants