-
Notifications
You must be signed in to change notification settings - Fork 97
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
v3 - Error: Type with name "File" does not exists #97
Comments
@gbreux Thanks for giving it a try! We are planning to publish a beta soon but I'll see if there's a better solution to this before we publish. The You can see it here: https://github.com/angeloashmore/gatsby-source-prismic/blob/v3-beta/src/standardTypes.graphql#L70 Do you have If you are able to clear you cache, could you also try |
I see, I reinstalled my node_modules, used
🤔 |
Sure, here it is: https://github.com/gbreux/nodokasa |
Interesting, I didn't have any image field on my schemas (I don't need one). But once I added one just for testing, I don't have this error anymore. Edit confirmed: If you have just one article published with an image field no matter where, you don't get this error |
@gbreux It's possible that we're telling Gatsby that images have a I don't have a solution in mind yet, but your diagnosis is helpful. Thank you! |
Happy to help, in the meantime I can just create a temporary custom type with one element and a picture that I will never use. Hope you'll find a solution :) |
I just ran into this same issue. Created a fresh repository with 1 page (without setting any image). After setting an image in my content this error went away. |
This should be resolved upstream in |
Still getting the error even with |
I'm getting this with the latest versions installed,
I had
let should = true
module.exports = {
// ...
plugins: [
// ...
{
resolve: `gatsby-source-prismic`,
options: {
shouldNormalizeImage: (...args) => {
const should = once
once = false
return should
},
},
},
],
} @angeloashmore do you work for Prismic? If not, they should be sponsoring you. |
Heya, I'm on what I (think) is the latest release of this plugin 3.0.0-beta.15, but I'm still getting this issue. I have a repro here: https://github.com/beaufort-asia/www/tree/repro I'm getting it even though I published dummy articles with Image fields included and all that. Maybe an edge case here that you missed? |
Hi,
I'm giving the alpha v3 a try (because I need optional field :)) but I encounter this error when I try to start :
Any idea where this can come from? How can I help you get more information about that?
PS: I copied the json files in their schema folder and added it to the config
The text was updated successfully, but these errors were encountered: