-
Notifications
You must be signed in to change notification settings - Fork 75
"gatsby-source-prismic-graphql" threw an error while running the createPages lifecycle, related to pages type #200
Comments
I think the problem is in your type name. So I suggest you try to change your type to |
I also experienced this issue and the suggestion above from noblica works - in Prismic the type is |
I experienced the same, the prismic type in |
IMHO, this is undocumented behavior, and should be added to the docs, to avoid further confusion. |
@noblica Thanks for finding the workaround. This needs to at least be documented. But really, the TypeName as Prismic shows it to users is how users should be expected to put it into the config. It's not ideal/intuitive for users to know that "Blog Post" has to be manually converted to any one of "Blog_Post", "Blog_post", or "blog_post," so that the system recognizes it. |
Hey, I made a PR for this issue here: Hope it's fine. Feel free to provide feedback! |
* docs: mention forgotten fix in changelog (and remove commits not relevant) * Add formatting for page types Co-authored-by: Vincent Velociter <[email protected]>
When running
gatsby develop
orgatsby build
, I get the following error:I found that the Name "posty" is related to my options in the
gatsby-config.js
file. Specifically the object defining the type 'Blog Post'.I created a new custom type on Prismic called Article and used 'Article' in the type field instead, and worked. Is there a problem with having the type be separate words?
The text was updated successfully, but these errors were encountered: