-
Notifications
You must be signed in to change notification settings - Fork 42
gatsby develop fails #4
Comments
Yes, I think it may require content, even dummy content for it to build. I'll probably need to to build in some sort of check the prevent future build problems but for the moment can you make some dummy content to see if that solves the errors |
I don't have the time this week, but I will look at it again once I have another project rolling. It would be nice to get it working! |
I am facing the same problem , hey sparker had you solved it ?? |
If it is the error previously reported, you will need to have some 'dummy content' in Contentful for it to build. There is a fix here - gatsbyjs/gatsby#32009 (comment) - to define types, but I don't have time to implement it right now. |
I'm getting "product" pages and its widgets without pictures. Also all blog post coming with no picture from Contentful.
Although all "Product" fields in Contentful are exists and therefore all pictures already must be imported with "product" module. Am I right? |
Yes, you need to have product images. It requires dummy content to render |
But I already have product images (which were imported with all demo content from your JSON file in start). Moreover, I see how all my "product" items displaying correctly in website. The only one problem -- pictures in blogs and products are missing. All photo images lost while importing form Contentful. |
My error about this event (from bash):
|
@ibragimof - did you resolve your issues? |
Yes. Thanks. |
@ibragimof - Yea, that won't work. The implementation is very basic and was first put in around 2 years ago while I was still learning both Gatsby and Contentful. I'm in the process of a major overhaul of this theme, creating new content models and changing the way it handles FAQs. The ideal implementation is a repeater field for FAQs but I've not started on it yet. My suggestion in the meantime would be to look at creating your own Repeater field implementation with Contentful that replaces the JSON object approach. |
@bagseye I'll wait your new minor update ) |
Your site looks fantastic. I'm still learning Gatsby, but I've created two sites now using Contentful, so I know the basics. So, I have my space id and token set up properly. The develop fails with TypeError: Cannot read property 'products' of undefined and then multiple GraphQL errors as it appears to be looking for both Products and Features data. Does the data need to be populated into Contentful first for this to work? Thank you.
The text was updated successfully, but these errors were encountered: