Hello!
My build fails with error: GraphQLError: Unknown type "PRISMIC_SortBlog_posty"
Config:
...
{
resolve: '@prismicio/gatsby-source-prismic-graphql',
options: {
repositoryName: process.env.PRISMIC_REPOSITORY_NAME,
accessToken: process.env.PRISMIC_ACCESS_TOKEN,
path: '/preview',
previews: true,
pages: [{
type: 'Blog_post',
match: '/about/blog/:uid',
path: '/blog-preview',
component: require.resolve('./src/components/blog-post.tsx')
}]
}
}
...
I’ve noticed that my graphql-types.ts
file changed:
export type Prismic_SortBlog_Posty =
=> export type Prismic_SortBlog_Post =
It looks removing trailing y
fixes the issue https://github.com/prismicio/gatsby-source-prismic-graphql/blob/master/packages/gatsby-source-prismic-graphql/src/gatsby-node.ts#L254
Is there any solution for that?