{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/2674","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/2674/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/2674/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/2674/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/2674","id":269444143,"number":2674,"title":"Tutorial Part 4 - Unknown field `siteMetadata` on type `Site`","user":{"login":"kildareflare","id":5456669,"avatar_url":"https://avatars1.githubusercontent.com/u/5456669?v=4","gravatar_id":"","url":"https://api.github.com/users/kildareflare","html_url":"https://github.com/kildareflare","followers_url":"https://api.github.com/users/kildareflare/followers","following_url":"https://api.github.com/users/kildareflare/following{/other_user}","gists_url":"https://api.github.com/users/kildareflare/gists{/gist_id}","starred_url":"https://api.github.com/users/kildareflare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kildareflare/subscriptions","organizations_url":"https://api.github.com/users/kildareflare/orgs","repos_url":"https://api.github.com/users/kildareflare/repos","events_url":"https://api.github.com/users/kildareflare/events{/privacy}","received_events_url":"https://api.github.com/users/kildareflare/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-10-29T22:38:40Z","updated_at":"2018-02-17T05:28:42Z","closed_at":null,"author_association":"NONE","body":"Followed the tutorial step by step. And I get the following error related to the graph query.\r\n\r\n```\r\n  GraphQL Error Unknown field `siteMetadata` on type `Site`\r\n  file: C:/Code/Projects/bss3/prt4-data/src/layouts/index.js\r\n\r\n  1 |\r\n  2 |   query LayoutQuery {\r\n  3 |     site {\r\n> 4 |       siteMetadata {\r\n    |       ^\r\n  5 |         title\r\n  6 |       }\r\n  7 |     }\r\n  8 |   }\r\n```\r\n\r\nAs per tutorial, this is defined in  `gatsby-config.js` which is in the root.\r\n![image](https://user-images.githubusercontent.com/5456669/32149287-a79eb4fc-bd66-11e7-9fe0-b6f6924244c9.png)\r\n\r\nRepeated more than once, starting from scratch.\r\nnpm: 5.4.2\r\nnode: 6.11.3"},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/366418332","html_url":"https://github.com/gatsbyjs/gatsby/issues/2674#issuecomment-366418332","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/2674","id":366418332,"user":{"login":"mccrodp","id":559938,"avatar_url":"https://avatars3.githubusercontent.com/u/559938?v=4","gravatar_id":"","url":"https://api.github.com/users/mccrodp","html_url":"https://github.com/mccrodp","followers_url":"https://api.github.com/users/mccrodp/followers","following_url":"https://api.github.com/users/mccrodp/following{/other_user}","gists_url":"https://api.github.com/users/mccrodp/gists{/gist_id}","starred_url":"https://api.github.com/users/mccrodp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mccrodp/subscriptions","organizations_url":"https://api.github.com/users/mccrodp/orgs","repos_url":"https://api.github.com/users/mccrodp/repos","events_url":"https://api.github.com/users/mccrodp/events{/privacy}","received_events_url":"https://api.github.com/users/mccrodp/received_events","type":"User","site_admin":false},"created_at":"2018-02-17T05:28:42Z","updated_at":"2018-02-17T05:28:42Z","author_association":"NONE","body":"🤕 🌴 In my case it was path to my `gatsby-config.js` that was wrong, make sure it is in the root and not `/src/` dir as it was in my case. You see this error when it's in the wrong dir, thanks Kyle!\r\n\r\n>What is the path to your gatsby-config.js? Could you paste it here?"}}
{"actor":{"display_login":"mccrodp"}}