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

Probably important: vanilla install won't create pages #10

Open
SecondeJK opened this issue Jun 26, 2019 · 7 comments
Open

Probably important: vanilla install won't create pages #10

SecondeJK opened this issue Jun 26, 2019 · 7 comments
Labels
bug Something isn't working

Comments

@SecondeJK
Copy link

No description provided.

@SecondeJK
Copy link
Author

When running gatsby develop after cloning the repo and running npm:

success onPreBootstrap - 0.011 s
success source and transform nodes - 0.063 s
success building schema - 0.254 s
Your site's "gatsby-node.js" must set the page path when creating a page

Blog doesn't compile, presumably because of a problem here:
path: post.node.fields.slug,
In the gatsby-node.js file.

This might not be an issue, maybe just GraphQL is returning no edges on compile for some reason

@SecondeJK
Copy link
Author

This seems to be correct, GQL can't find fields on each node edge.

@SecondeJK
Copy link
Author

OK, the createPaginatedPages() method isn't documented correctly over on that plugin's docs in that it doesn't specify that the pathPrefix is required (or this is using it in a context where a default value won't work). Without it, the config won't resolve the base path when compiling the index. I'll issue a PR to fix this.

@SecondeJK
Copy link
Author

#11

@RyanFitzgerald RyanFitzgerald added the bug Something isn't working label Jun 30, 2019
@RyanFitzgerald
Copy link
Owner

Sorry for a bit of a delay getting to this. This definitely looks like an issue, thank for bringing it up and for taking the time to put together a PR! I'll be able to to take a look at the PR shortly.

@RyanFitzgerald
Copy link
Owner

@SecondeJK, did you do anything in particular leading up the error? I'm trying to reproduce the problem but it seems to compile successfully for me (when running gatsby develop).

@SecondeJK
Copy link
Author

That is really weird that it flat out refuses to compile with no mods* (see below)
Details are -
Ubuntu 18.04
npm 6.9.0
node 12.5.0

The only problem I encountered before compiling was having to fix gatsby-snap, which for some reason was just complaining. I manually installed the latest and created a new lockfile. Rendering the images -shoudn't- affect how gatsby ends up compiling the paginated index though...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants