You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building a site using gridsome build when having dynamically created tag pages. An error occurs on build but works fine serving the site using gridsome develop.
Steps to reproduce
Node versions I had tried v12.21.0, v16.18.0, v17.9.1, v18.14.2.
This is what I have narrowed down to when it happens for me.
Packages:
Markdown file in path /data/articles that include the following front matter added.
author: Author Name 2tags: ['design', 'frontend']
Expected result
Tag directories and pages are generated. This is an example from another gridsome site.
Actual result
Could not generate HTML for "/tag/design/":
TypeError: Cannot read property 'state' of undefined
at lo.$page (node_modules/gridsome/app/graphql/mixin.js:17:32)
at lo.$page (/home/marvin/repos/iedsa/my-project/node_modules/vue/dist/vue.runtime.common.prod.js:11:38195)
at i.data (src/templates/Tag.vue:12:36)
at /home/marvin/repos/iedsa/my-project/node_modules/vue/dist/vue.runtime.common.prod.js:11:37187
at /home/marvin/repos/iedsa/my-project/node_modules/vue/dist/vue.runtime.common.prod.js:11:37247
at eo (/home/marvin/repos/iedsa/my-project/node_modules/vue/dist/vue.runtime.common.prod.js:11:37434)
at i.e._init (/home/marvin/repos/iedsa/my-project/node_modules/vue/dist/vue.runtime.common.prod.js:11:41333)
at new i (/home/marvin/repos/iedsa/my-project/node_modules/vue/dist/vue.runtime.common.prod.js:11:38851)
at Mt (/home/marvin/repos/iedsa/my-project/node_modules/vue-server-renderer/build.prod.js:1:23296)
at po (/home/marvin/repos/iedsa/my-project/node_modules/vue-server-renderer/build.prod.js:1:70206)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Description
Building a site using
gridsome build
when having dynamically created tag pages. An error occurs on build but works fine serving the site usinggridsome develop
.Steps to reproduce
Node versions I had tried
v12.21.0
,v16.18.0
,v17.9.1
,v18.14.2
.This is what I have narrowed down to when it happens for me.
Packages:
Gridsome config:
Markdown file in path /data/articles that include the following front matter added.
Expected result
Tag directories and pages are generated. This is an example from another gridsome site.
Actual result
Environment
The text was updated successfully, but these errors were encountered: