When I run yarn develop on my machine after yarn install, I get the error mentioned above, right after fetching the API.
GraphQL Error Field "author" must not have a selection since type "Int" has no subfields.
file: /Users/kyngo/Development/gatsby-wordpress-netlify-starter/src/pages/index.jsx
5 | node {
6 | date
7 | slug
8 | title
9 | modified
10 | excerpt
11 | id
12 | featured_media {
13 | source_url
14 | }
> 15 | author {
| ^
16 | name
17 | }
18 | categories {
19 | name
20 | }
21 | content
22 | }
23 | }
24 | }
25 | }
success extract queries from components — 0.056 s
success run graphql queries — 0.009 s
success write out page data — 0.003 s
success write out redirect data — 0.001 s
success onPostBootstrap — 0.001 s
info bootstrap finished - 65.22 s
error UNHANDLED EXCEPTION
Error: getaddrinfo ENOTFOUND localhost
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
When I run
yarn developon my machine afteryarn install, I get the error mentioned above, right after fetching the API.