-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Cannot query field "allWordPressPost" on type "Query". Did you mean "allGraphqlPost"? #12
Comments
What does the |
module.exports = { Tried several with differed Wp-pages. |
The |
Ha, thanks. I tried first remove the word WordPress, but it crashes of course. Removing that helps. So this works. Should there be action when you press Read more or is that action for enduser to do? |
Updated source plugin and now Read me -link works.
|
Yeah I had the same issue and I updated both my ACF to REST API plugin and ACF plugin on the wordpress side, and everything worked again. |
`Gridsome v0.5.7
Initialize - 0.13s
Request failed with status code 401: https://dividends-o-matic.net/cms/wp-json/wp/v2/feedback?per_page=100
Load sources - 2.94s
Create GraphQL schema - 0.1s
No content type was found for src/templates/WordPressPostTag.vue
No content type was found for src/templates/WordPressPost.vue
No content type was found for src/templates/WordPressCategory.vue
Set up routes - 0s
Generate code - 0.01s
Bootstrap finish - 3.19s
ERROR Failed to compile with 1 errors 18.37.49
error in ./src/pages/Index.vue?vue&type=custom&index=0&blockType=page-query
Module build failed (from ./node_modules/gridsome/lib/webpack/loaders/page-query.js):
Error: Cannot query field "allWordPressPost" on type "Query". Did you mean "allGraphqlPost"?
GraphQL request (15:3)
14: query Home ($page: Int) {
15: allWordPressPost (page: $page, perPage: 10) @paginate {
^
16: pageInfo {
@ ./src/pages/Index.vue?vue&type=custom&index=0&blockType=page-query 1:0-312 1:328-331 1:333-642 1:333-642
@ ./src/pages/Index.vue
@ ./src/.temp/routes.js
@ ./node_modules/gridsome/app/router.js
@ ./node_modules/gridsome/app/app.js
@ ./node_modules/gridsome/app/entry.client.js
@ multi webpack/hot/dev-server webpack-hot-middleware/client?name=app&reload=true ./node_modules/gridsome/app/entry.client.js
WAIT Compiling... 18.37.49
ERROR Failed to compile with 1 errors 18.37.49
error in ./src/pages/Index.vue?vue&type=custom&index=0&blockType=page-query
Module build failed (from ./node_modules/gridsome/lib/webpack/loaders/page-query.js):
Error: Cannot query field "allWordPressPost" on type "Query". Did you mean "allGraphqlPost"?
GraphQL request (15:3)
14: query Home ($page: Int) {
15: allWordPressPost (page: $page, perPage: 10) @paginate {
^
16: pageInfo {
@ ./src/pages/Index.vue?vue&type=custom&index=0&blockType=page-query 1:0-312 1:328-331 1:333-642 1:333-642
@ ./src/pages/Index.vue
@ ./src/.temp/routes.js
@ ./node_modules/gridsome/app/router.js
@ ./node_modules/gridsome/app/app.js
@ ./node_modules/gridsome/app/entry.client.js
@ multi webpack/hot/dev-server webpack-hot-middleware/client?name=app&reload=true ./node_modules/gridsome/app/entry.client.js
The text was updated successfully, but these errors were encountered: