Comments (10)
It seems that you need to add a featured image as well as a tag, otherwise it won't compile. If you add an image to your post and add a tag, it should work.
from gridsome-starter-wordpress.
I've spend 2 hours finding this error out. This should be captured by the code when people do not have tags or a featured image.
from gridsome-starter-wordpress.
Could you share your solution?
from gridsome-starter-wordpress.
The requirements won't be satisfied until
-
every post has featured image and tag
-
you need to add tag into the Posts>Tags menu.
Then it will compile.
I personally think that this should be fixed and it should work out-of-the-box with fresh WP setup.
from gridsome-starter-wordpress.
Just to confirm, adding a featured image and a tag to posts, fixes the issue.
from gridsome-starter-wordpress.
I am getting this same error.
from gridsome-starter-wordpress.
so this issue is not fixed yet???
i am able to fix it by removing lines related to featuredImage (since my site doesn't use featured images at all)
from gridsome-starter-wordpress.
Any updates on this? I am getting the same error.
from gridsome-starter-wordpress.
if they make tag and featured images optional and show them only if have it...then problem will be fixed.
from gridsome-starter-wordpress.
Emmmm, it seems to be one of the features of GraphQL.
GraphQL guarantees that you can receive data as the format that you request.
Thus it is hard to make it optional.
from gridsome-starter-wordpress.
Related Issues (20)
- Cannot query field "url" HOT 3
- Error: Cannot query field "allWordPressPost" on type "Query". Did you mean "allGraphqlPost"? HOT 6
- Failed to fetch baseUrl HOT 9
- Page Template HOT 1
- Error: ECONNREFUSED - /wp-json/wp/v2/types HOT 9
- vue-svg-loader giving Error: Cannot query field "allWordPressP ost" on type "Query".
- Failed to make route like WordPress custom permalink
- Can't have pages with children render correctly: routes: { page: ':link', HOT 11
- Updating for v0.7, Routes/Templates HOT 3
- TypeError: Cannot destructure property `status` of 'undefined' or 'null'. HOT 16
- Custom Post Types 'rest_base' starting with '/' HOT 1
- Failed to compile with 2 errors HOT 4
- Use :category as path
- WordPress Multisite support HOT 1
- custom post types support?
- QUESTION: Support for JWT authentication
- Error graphQl run dev
- fails on POST with 400 HOT 3
- Clarification
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 gridsome-starter-wordpress.