Comments (4)
Ok these errors occur when no media has been created and no one post has tags.
For tags :
I think is due to this part https://github.com/gridsome/gridsome/blob/master/packages/source-wordpress/index.js#L152
Because use map on empty array if no post contains tags the createReference function is never called and graphql does not add the tags property in the type WordPressPost.
If you don't use tags on wordpress you can remove
On template
<template v-if="$page.wordPressPost.tags.length">
<h4>Tags</h4>
<ul class="list tags">
<li v-for="tag in $page.wordPressPost.tags" :key="tag.id" >
<g-link :to="tag.path">{{ tag.title }}</g-link>
</li>
</ul>
</template>
and on page-query
tags {
id
title
path
}
To remove errors in the generations
from gridsome-starter-wordpress.
Same problem here. Working 10 days ago. Suddenly stopped working.
from gridsome-starter-wordpress.
Have same problem, even with fresh install of wordpress
from gridsome-starter-wordpress.
I've got the same problem, because I didn't create posts and didn't link to one of them the tagname
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
- sourceUrl error HOT 10
- 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
- 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.