I am currently building my blog using Netlify and Gridsome.
I recently added a new section called “Gallery” using the Gridsome “@gridsome/source-filesystem” plug-in.
With this plug-in, new pages are created using Markdown files and the information contained in these files can be retrieved using GraphQL queries.
When I build my website locally and then deploy it to Netlify everything is fine and working as it should be. However, when I push to Github and thus trigger the build on Netlify and error appears and it looks like this error is due to the fact that the GraphQL scheme is not properly built.
I checked Gridsome versions since the build is made using it and my version is the same as the one installed during build (v0.7.13).
cannot read src of null is the information that is supposed to be acquired by the GraphQL Query but it looks that during the build, it doesn’t exist.
What strikes me is that I have another section created in the same way and it works…
I don’t know if something that should be pushed to Github is not or if it comes from something else…
Maybe someone already encountered this.
Many thanks in advance!
Here is the result of the build: