-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
How to connect the magic #2911
Comments
Seems liek these queries are provided secret variables and information that I have no control of. I see the id in the query response but dont see how this links to the other query and/or how to pass the data since all the examples dont show this being done. |
This is all under your control and it's a pretty simple system once you understand what's happening :-) the errors I agree can do a lot better (and will). Try going through the tutorial which walks you through step by step how things work. Would love your feedback on the tutorial! |
The main thing here in my eyes is that this pageQuery seems like it should be a factory function not a string so we can expose what is happening here easily. Not sure. I get for sure it's probably fairly straight forward in the end. Love what it seems like its going to be. |
So the id problem apparently is because: ---
title : "Main"
path: "index"
date: "2017-07-12T17:12:33.962Z"
--- needed to be: ---
title : "Main"
path: "/index"
date: "2017-07-12T17:12:33.962Z"
--- |
However every singel save gives me this:
Note that I am not referencing or using that file at any point. (the one in assets). Additionally, i cant comment out a file to not have it referenced so it makes it difficult to make a file not used anymore without deleting it completely. Apparently any file in any part needs to be perfect or nothing works. Sometimes I want to keep the file for reference when needed. |
netlify also gives me lots of weird errors I can't really figure out -- off topic but not even sure where I would start with this since I don't know why it happens:
and graphql errors
and some empty errors from something i didnt add to my config even
and sitemap gives errors
They likely aren't bugs but it could help to understand what things a new user is likely to run into when first setting things up. Would be nice to have better references at these times as-to what is happening. I know y'all are likely working on such things! Appreciate all the effort on this project. |
Specifically it would appear impossible to use images in markdown.
If I take out the images plugin then this error does not occur anymore but the rendered page does not work with any images I try to use in the markdown. |
Side comment, we should open an umbrella issue for bad errors so folks who want to can jump in and fix em. |
Yeah, ideally the errors would guide you back to the blessed path instead of being inscrutable. Best thing we can offer now is you compare your site to one of the starters e.g. https://github.com/gatsbyjs/gatsby-starter-blog and see what things are different. The sharp.node error seems like you had an NPM install error on Netlify. You should click rebuild and clear the build cache. |
Also the tutorial :-) |
Now I am getting it randomly locally.. This is maddening. With remark-images:
I get the following:
Without it
|
You need to remove your node_modules directory and reinstall. If that's not working — you could also try running |
It's weird, so in development I need to make sure |
This seemed to solve the issue for me. Deleting the node_modules and doing a |
Deleting the |
Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help! |
@BrandonSM Thanks worked for me! Not sure why the error was pointing to the Graph data API tho |
Not really sure what is happening here. I am getting errors about queries i don't really see... I know im doing something wrong but not realy sure what is happening under the hood. This is with markdown but it seems to magically add to my queries in some way that I cant see.
Modifying examples that are provided I have something like this right now
Then the template has something like this:
This produces an error that it cant find the id. Not really sure why. I see the original queries the id but dont know how i can get it to pass said id into this and/or why this is happening when the original example looks like this.
The text was updated successfully, but these errors were encountered: