Comments (5)
I think you are talking about this: https://github.com/Chronoblog/gatsby-theme-chronoblog#frontmatter-placeholder ?
from gatsby-theme-chronoblog.
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.
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.
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.
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)
- Trouble updating banner.png HOT 4
- Make an easy way to access post data from post-footer.mdx HOT 6
- Commenting solution HOT 4
- `getItemYear` does not handle locale properly HOT 3
- Have You considered Adding a Version that Works with Netlify CMS ? HOT 2
- How do I create a new component?
- How do I add/edit the CSS? HOT 4
- Ability to select multiple tags at a time? HOT 4
- Getting error when running gatsby build! HOT 9
- Won't load local file GIF in md or mdx blog file HOT 1
- Local copy of theme with updated plugins?
- Component _____ was not imported, exported, or provided by MDXProvider as global scope HOT 3
- gatsby components not getting mounted in build on github pages with actions HOT 2
- <a> cannot appear as a descendant of <a>
- -webkit-appearance is not supported by theme-ui sx property
- The demo stopped working HOT 5
- How can I add pagination? HOT 2
- Remove related posts from any post HOT 2
- How to Remove Search, Tag Cloud & Additional Posts in a Blog Post HOT 2
- Upgrade gatsby version with related dependencies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-theme-chronoblog.