GatsbyWPGutenberg / gatsby-wordpress-gutenberg

Enhance your gatsby project with gutenberg

Home Page:https://gatsbywpgutenberg.netlify.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blocks don't work on build time with static query

rodrigo-arias opened this issue · comments

Hi @pristas-peter,

I am trying to do this: https://github.com/rodrigo-arias/gatsby-wordpress-demo/blob/master/src/pages/index.js

Everything works fine with develop, but breaks at build time

image

I also found an error that maybe is related gatsbyjs/gatsby-source-wordpress-experimental#105

The issue only happens using the blocks

"gatsby": "^2.24.31"
"gatsby-source-wordpress-experimental": "^1.2.6"

Do you think the static query should not affect the blocks and is there something else?

Thank you

The were some changes in gatsby lately on how the static queries are bundled, so I guess the problem is somewhere down that road.

Thanks Peter, it's good to know that you know where the issue can come from. It will be great when you get a chance to check it out