Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

Resolve banner through cms #8

Open
daylennguyen opened this issue Mar 11, 2019 · 0 comments
Open

Resolve banner through cms #8

daylennguyen opened this issue Mar 11, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@daylennguyen
Copy link
Owner

Gatsby-Image-Sharp does not play well with SVG files

7:40:19 PM: error GraphQL Error Field "banner" must not have a selection since type "String" has no subfields.
7:40:19 PM:   file: /opt/build/repo/src/templates/index-page.js
7:40:19 PM:    1 |
7:40:19 PM:    2 |   query IndexPageTemplate {
7:40:19 PM:    3 |     markdownRemark(frontmatter: { templateKey: { eq: "index-page" } }) {
7:40:19 PM:    4 |       frontmatter {
7:40:19 PM: >  5 |         banner {
7:40:19 PM:      |                ^
7:40:19 PM:    6 |           childImageSharp {
7:40:19 PM:    7 |             fixed(width: 860) {
7:40:19 PM:    8 |               ...GatsbyImageSharpFixed_withWebp_tracedSVG
7:40:19 PM:    9 |             }
7:40:19 PM:   10 |           }
7:40:19 PM:   11 |         }
7:40:19 PM:   12 |         termtitle
7:40:19 PM:   13 |         termtext
7:40:19 PM:   14 |         intro {
7:40:19 PM:   15 |           heading

Will likely direct import to resolve.

@daylennguyen daylennguyen added the bug Something isn't working label Mar 11, 2019
@daylennguyen daylennguyen self-assigned this Mar 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant