I'm trying to integrate prismic with a preexisting gatsby site, and am running into an issue with the custom types api. When I run the develop command, I get the error:
Missing onError handler for invocation 'building-schema', error was 'Error: Type with name "GatsbyImageLayout" does not exists'. Stacktrace was 'Error: Type with name
"GatsbyImageLayout" does not exists
and then the 'building schemas' message runs indefinitely.
I've cleared and reinstalled the plugins of interest, and I'm using v3.14.1 gatsby.
In searching around, I found that there was a prior issue that would cause a very similar error if two plugins both used gatsby-plugin-image, but in this case it seems the type is never actualized rather than being used twice and that specific issue was addressed and patched by the gatsby-plugin-image folks.
Hey there @tjl4, thanks for sending over the details.
That warning is happening because you're missing to add gatsby-plugin-image to your plugin configuration. gatsby-config.js (1.3 KB)
I also saw that a few dependencies are out of date and create a dependency conflict when installed from scratch. It might be good to update them as well!