Hi Henrik, thanks for the tutorial series, it has been quite helpful!
When I attempt to run gatsby develop after updating the files per your instructions above I'm getting the following error messages:
ERROR #85901 GRAPHQL There was an error in your GraphQL query: Expected file type WPGraphQL_MenuLocationEnum, found PRIMARY.
File: src\components\Menu.js:21:41
ERROR #98123 WEBPACK
Generating development JavaScript bundle failed
D:\learn\gatsby-starter-wordpress-advanced\src\components\Menu.js
21:41 error Expected type WPGraphQL_MenuLocationEnum, found PRIMARY graphql/template-strings
Any ideas on what I might be doing wrong?
Seems the theme I was using used MENU_1 instead of PRIMARY for the menu id, once I changed to MENU_1 it began working!
Glad you already figured it out ✌
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Henrik, thanks for the tutorial series, it has been quite helpful!
When I attempt to run gatsby develop after updating the files per your instructions above I'm getting the following error messages:
ERROR #85901 GRAPHQL
There was an error in your GraphQL query:
Expected file type WPGraphQL_MenuLocationEnum, found PRIMARY.
File: src\components\Menu.js:21:41
ERROR #98123 WEBPACK
Generating development JavaScript bundle failed
D:\learn\gatsby-starter-wordpress-advanced\src\components\Menu.js
21:41 error Expected type WPGraphQL_MenuLocationEnum, found PRIMARY graphql/template-strings
Any ideas on what I might be doing wrong?
Seems the theme I was using used MENU_1 instead of PRIMARY for the menu id, once I changed to MENU_1 it began working!
Glad you already figured it out ✌