Giter Club home page Giter Club logo

gatsme's People

Contributors

d3vma avatar

Stargazers

 avatar

Watchers

 avatar  avatar

gatsme's Issues

npm run start got error with cover_image

Here is the error message about the index.js cover_image when I use npm run start, and the localhost:8000 page is blank but admin page is ok. I have followed your medium tutorial instructions, could you help me to solve? thanks

` ERROR #85923 GRAPHQL

There was an error in your GraphQL query:

Cannot query field "cover_image" on type "Frontmatter".

If you don't expect "cover_image" to exist on the type "Frontmatter" it is most likely a typo.
However, if you expect "cover_image" 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 "cover_image" 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 at 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 "Frontmatter":
https://www.gatsbyjs.com/docs/reference/graphql-data-layer/schema-customization#creating-type-definitions

File: src\pages\index.js:98:9

failed extract queries from components - 3.793s
success write out requires - 0.105s
success run static queries - 0.051s - 2/2 39.01/s
success run page queries - 0.039s - 2/2 51.62/s
DONE Compiled successfully in 14427ms 10:01:51⠀
I Netlify CMS is running at http://localhost:8000/admin/

ERROR #98123 WEBPACK

Generating development JavaScript bundle failed

C:\Users\nosy_\Desktop\React\gatsme\src\pages\index.js
98:9 error Cannot query field "cover_image" on type "Frontmatter" graphql/template-strings

1 problem (1 error, 0 warnings)

failed Building development bundle - 28.582s
ERROR in
C:\Users\nosy_\Desktop\React\gatsme\src\pages\index.js
98:9 error Cannot query field "cover_image" on type "Frontmatter" graphql/template-strings

1 problem (1 error, 0 warnings)

webpack compiled with 1 error `

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.