Skip to content
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

Issue when building / serving - TypeError: Cannot read property 'nodes' of undefined #7

Open
dhruuuuuv opened this issue Jul 3, 2020 · 3 comments

Comments

@dhruuuuuv
Copy link

Hi,

Thanks for building this - it looks great! I'm trying to use it, and it works fine in development mode. However when I try and build & serve (gatsby build, gatsby serve), or host it using netlify, I get the following error:

TypeError: Cannot read property 'nodes' of undefined

I'm using the Gallery Component in the default folder. I was wondering if this is a known issue?

Thanks

@epilande
Copy link
Owner

epilande commented Jul 7, 2020

@dhruuuuuv what version of gatsby are you using? Any specific steps to reproduce?

@dhruuuuuv
Copy link
Author

Hi @epilande,

Thanks for getting back to me. I'm using gatsby version 2.15.20

In terms of reproduction, I'm just using the Gallery component, with the default folder location (content/gallery). When I run this in dev mode everything appears fine, but when serving the built site, I get an error when navigating to the page on which the gallery component is used in.

Hope that helps.

@bbo-git
Copy link

bbo-git commented Dec 15, 2020

Hi!
I am using the theme gallery as a component to a Stackbit Vanilla site.
I created the component, but Gatsby wont build anymore and I don't know why.
Here is an image of the build log:
Screenshot 2020-12-13 at 16 14 24
Screenshot 2020-12-13 at 16 16 07

Screenshot 2020-12-13 at 16 08 12

Hope this helps to improve the plugin ;)

Jairo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants