You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating siteMetadata.externalLinks to have a single element results in the default template's Instagram link still being rendered. If you do this while running gatsby develop, it results in a render error. If you kill gatsby develop and re-run, the default template's Instagram link is rendered.
Steps to reproduce
Run gatsby develop
Update the gatsby-config.js to have a single externalLinks element
Observe the error when the page attempts to re-render
Kill gatsby develop and re-run
Expected result
The page should only display a single external link.
Actual result
When making the update while running gatsby develop the following error is displayed:
Failed to compile
There was an error in your GraphQL query:
Cannot query field "siteImage" on type "SiteSiteMetadata".
If you don't expect "siteImage" to exist on the type "SiteSiteMetadata" it is most likely a typo.
However, if you expect "siteImage" 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.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "siteImage" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")
It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "SiteSiteMetadata":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions
File: D:/dev/geeklad-com/node_modules/@lekoarts/gatsby-theme-minimal-blog/src/hooks/use-site-metadata.tsx
There was an error in your GraphQL query:
Cannot query field "tagsPath" on type "SiteSiteMetadata".
If you don't expect "tagsPath" to exist on the type "SiteSiteMetadata" it is most likely a typo.
However, if you expect "tagsPath" 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.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "tagsPath" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")
It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "SiteSiteMetadata":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions
File: D:/dev/geeklad-com/node_modules/@lekoarts/gatsby-theme-minimal-blog/src/hooks/use-site-metadata.tsx
There was an error in your GraphQL query:
Cannot query field "basePath" on type "SiteSiteMetadata".
If you don't expect "basePath" to exist on the type "SiteSiteMetadata" it is most likely a typo.
However, if you expect "basePath" 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.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "basePath" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")
It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "SiteSiteMetadata":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions
File: D:/dev/geeklad-com/node_modules/@lekoarts/gatsby-theme-minimal-blog/src/hooks/use-site-metadata.tsx
There was an error in your GraphQL query:
Cannot query field "blogPath" on type "SiteSiteMetadata".
If you don't expect "blogPath" to exist on the type "SiteSiteMetadata" it is most likely a typo.
However, if you expect "blogPath" 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.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "blogPath" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")
It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "SiteSiteMetadata":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions
File: D:/dev/geeklad-com/node_modules/@lekoarts/gatsby-theme-minimal-blog/src/hooks/use-site-metadata.tsx
There was an error in your GraphQL query:
Cannot query field "showLineNumbers" on type "SiteSiteMetadata".
If you don't expect "showLineNumbers" to exist on the type "SiteSiteMetadata" it is most likely a typo.
However, if you expect "showLineNumbers" 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.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "showLineNumbers" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")
It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "SiteSiteMetadata":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions
File: D:/dev/geeklad-com/node_modules/@lekoarts/gatsby-theme-minimal-blog/src/hooks/use-site-metadata.tsx
If you re-run gatsby develop the page renders, but instead of the single external link, it shows a second external link (the default Instagram link).
I did make a breaking change to fix that (it was necessary) as it seems Gatsby has problems merging things in siteMetadata if it's more than a key/string pair. Moving it to the theme options should solve this. I also added some guards in the components so that you can leave it completely empty (both).
Description
Updating
siteMetadata.externalLinks
to have a single element results in the default template's Instagram link still being rendered. If you do this while runninggatsby develop
, it results in a render error. If you killgatsby develop
and re-run, the default template's Instagram link is rendered.Steps to reproduce
gatsby develop
gatsby-config.js
to have a singleexternalLinks
elementgatsby develop
and re-runExpected result
The page should only display a single external link.
Actual result
When making the update while running
gatsby develop
the following error is displayed:If you re-run
gatsby develop
the page renders, but instead of the single external link, it shows a second external link (the default Instagram link).Environment
The text was updated successfully, but these errors were encountered: