-
Notifications
You must be signed in to change notification settings - Fork 70
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
Set up error - Graphql query fails on new Prismic repo #5
Comments
Ditto. Haven't used Netlify or Prismic before, so I'll try give it a go when I have more time. |
You need to follow all steps in the instruction including a Prismic repository and 3 Custom Types: Project, Post and Project with at least 1 document in each Custom Types. |
@umriyaafini Thank you, I have done that and still run into the issue. I created my own Prismic repository, created those custom types and linked it. |
Hi, same here, 3 custom types, with copy paste of the JSON, and put my repo name in the gatsby config EDIT : Running Gatsby clean to clear cache worked for me. |
Have you created the document/content for each type? I think the error caused by empty |
I already copy-paste the custom types and created some data with it, but the issue is the main page it has an error, but if I browse to http://localhost:8000/blog and http://localhost:8000/work my samples the I created are shown, |
I already make it work by inputting data in prismic and rerun the app after publishing I hope it works on your end. |
@delacernamarimar Did you create your own prismic repo? |
@barbgegrasse nice, I will give it a shot |
@umriyaafini I haven't created any new content - all custom types have a schema, but I haven't created any actual posts, etc |
@colbisaurusrex yes I created it, create some post so that you can test, |
Please try @barbgegrasse's advice. It solved my prob. Thank you!
|
|
I found some luck with this issue changing the repository security to Open API. Unsure if there's a way to add API credentials. update: add |
I had a bit of trouble setting this up but it's pretty cool now it's running! Thought I would add some things it took me a while to grasp:
|
having the same issue as everyone has there been any recent updates? |
First, thank you that is an amazing template. |
Yup I also had the same issue - resolved by running |
@georgex1999 That was super helpful as someone who hadn't used Prismic. @margueriteroth Really appreciate the template. Can I suggest that someone adds @georgex1999 |
@margueriteroth thanks so much for this template. Setup was super clear and easy to do. Much appreciated. Agree with the above, I'd recommend adding a few more points to the end of "3. Define your Custom Types" telling the user to fill out at least enough content in the Custom Types to populate one of each type, and definitely show adding the URL to the About section. Adding enough content to everything else doesn't do it, you have to add the URL type within About for the project to work. Thanks again. |
Thank you @kylemhudson, @georgex1999, @JesseSingleton, and everyone else for outlining this issue and solution. I've added a Tips & Common Errors section to the readme and included these items. |
@margueriteroth amazing, thank you! |
It was |
Hello,
I followed the read-me step by step and created a Prismic repo, linking it gatsby-config.js where it is required. I get a long list of errors when I start the dev server. Is there something I am missing? Pretty new to Prismic/
Do you have any advice? I like the starter kit and would love to use it.
Best,
Colby
The text was updated successfully, but these errors were encountered: