Describe the bug
If the socialLinks entry is removed, empty or doesn't have at least one entry with each of name, uri and iconName then the site will fail to build.
To Reproduce
Edit gatsby-config.js to have an empty or missing socialLinks entry.
Expected behavior
Everything works with no social links in the footer.
Screenshots
ERROR #85923 GRAPHQL
There was an error in your GraphQL query:
Cannot query field "socialLinks" on type "SiteSiteMetadata".
If you don't expect "socialLinks" to exist on the type "SiteSiteMetadata" it is most likely a typo. However, if you expect "socialLinks" 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/gatsby-config, please try a restart of your development server.
- You want to optionally use your field "socialLinks" and right now it is not used anywhere.
It is recommended to explicitly type your GraphQL schema if you want to use optional fields.
File: node_modules/@lullabot/gatsby-theme-adr/src/components/layout/Layout.tsx:30:9
See our docs page for more info on this error: https://gatsby.dev/creating-type-definitions
failed extract queries from components - 1.800s
Describe the bug If the
socialLinks
entry is removed, empty or doesn't have at least one entry with each ofname
,uri
andiconName
then the site will fail to build.To Reproduce Edit
gatsby-config.js
to have an empty or missingsocialLinks
entry.Expected behavior Everything works with no social links in the footer.
Screenshots