Giter Site home page Giter Site logo

Comments (5)

ganevdev avatar ganevdev commented on May 22, 2024

I think you are talking about this: https://github.com/Chronoblog/gatsby-theme-chronoblog#frontmatter-placeholder ?

from gatsby-theme-chronoblog.

macintacos avatar macintacos commented on May 22, 2024

Nope; I left that file alone and got the error I provided above when I removed the cover from the last post's frontmatter. The frontmatter-placeholder index file still exists and has the cover field, but gatsby develop doesn't seem to care, and the site won't render until I add the cover field to at least one post.

from gatsby-theme-chronoblog.

russmatney avatar russmatney commented on May 22, 2024

I experienced this yesterday while moving into this theme - I couldn't get the page building again until I'd provided an image at exactly the path specified by cover in a post. Things worked great after adding an image, but beforehand the errors seem to be that the gql query handler for cover gets a String instead of an object.

from gatsby-theme-chronoblog.

ganevdev avatar ganevdev commented on May 22, 2024

Here is a test starter where this error is reproduced: https://github.com/Chronoblog/gatsby-theme-chronoblog/tree/master/tests/profile-minimal

But I still don’t understand why this is happening.

Command to run:

yarn start:profile-minimal

from gatsby-theme-chronoblog.

ganevdev avatar ganevdev commented on May 22, 2024

Thanks to the investigation by @russmatney #36 (comment), we know that this problem does not have a “right” solution. But we can do something.

So, I tried to add a real image file to the frontmatter-placeholder: https://github.com/Chronoblog/gatsby-theme-chronoblog/tree/master/tests/profile-minimal/content/links/frontmatter-placeholder, and everything seemed to work. I will add an image file to all starters.

I don’t like this solution because it relies a lot on the frontmatter-placeholder - the user can accidentally delete this folder, and then a lot of things can go wrong.

I’m thinking about maybe creating a separate place for this file? Or maybe automatically generate it every time a site is generated?

from gatsby-theme-chronoblog.

Related Issues (20)

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.